home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / Tool Chest / Games / Mac Game Developer's Handbook / Graphics / GDevice Manager < prev    next >
MacBinary  |  1993-04-22  |  51.6 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Thu Apr 22 00:48:23 1993, modified Thu Apr 22 00:48:25 1993, creator 'HLX2', type 'ONLN', 50825 bytes "GDevice Manager" , at 0xc709 1702 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 47 44 65 76 69 63 | 65 20 4d 61 6e 61 67 65 |..GDevic|e Manage|
|00000010| 72 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 00 c6 89 00 | 00 06 a6 a7 fb d4 17 a7 |........|........|
|00000060| fb d4 19 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0f 00 00 00 |........|........|
|00000080| 47 72 61 70 68 69 63 73 | 20 44 65 76 69 63 65 73 |Graphics| Devices|
|00000090| 20 4d 61 6e 61 67 65 72 | 20 51 26 41 73 0d 44 65 | Manager| Q&As.De|
|000000a0| 76 69 63 65 73 09 4d 2e | 44 56 2e 47 44 4d 67 72 |vices.M.|DV.GDMgr|
|000000b0| 2e 51 26 41 73 0d 52 65 | 76 69 73 65 64 20 62 79 |.Q&As.Re|vised by|
|000000c0| 3a 09 41 70 70 6c 65 20 | 44 65 76 65 6c 6f 70 65 |:.Apple |Develope|
|000000d0| 72 20 54 65 63 68 6e 69 | 63 61 6c 20 53 75 70 70 |r Techni|cal Supp|
|000000e0| 6f 72 74 09 41 75 67 75 | 73 74 20 31 39 39 32 0d |ort.Augu|st 1992.|
|000000f0| 57 72 69 74 74 65 6e 20 | 62 79 3a 09 41 70 70 6c |Written |by:.Appl|
|00000100| 65 20 44 65 76 65 6c 6f | 70 65 72 20 54 65 63 68 |e Develo|per Tech|
|00000110| 6e 69 63 61 6c 20 53 75 | 70 70 6f 72 74 09 4f 63 |nical Su|pport.Oc|
|00000120| 74 6f 62 65 72 20 31 39 | 39 30 0d 54 68 69 73 20 |tober 19|90.This |
|00000130| 54 65 63 68 6e 69 63 61 | 6c 20 4e 6f 74 65 20 63 |Technica|l Note c|
|00000140| 6f 6e 74 61 69 6e 73 20 | 61 20 63 6f 6c 6c 65 63 |ontains |a collec|
|00000150| 74 69 6f 6e 20 6f 66 20 | 51 26 41 73 20 72 65 6c |tion of |Q&As rel|
|00000160| 61 74 69 6e 67 20 74 6f | 20 61 20 73 70 65 63 69 |ating to| a speci|
|00000170| 66 69 63 20 74 6f 70 69 | 63 d1 71 75 65 73 74 69 |fic topi|c.questi|
|00000180| 6f 6e 73 20 79 6f 75 d5 | 76 65 20 73 65 6e 74 20 |ons you.|ve sent |
|00000190| 44 65 76 65 6c 6f 70 65 | 72 20 54 65 63 68 6e 69 |Develope|r Techni|
|000001a0| 63 61 6c 20 53 75 70 70 | 6f 72 74 20 61 6c 6f 6e |cal Supp|ort alon|
|000001b0| 67 20 77 69 74 68 20 44 | 54 53 d5 73 20 61 6e 73 |g with D|TS.s ans|
|000001c0| 77 65 72 73 2e 20 57 68 | 69 6c 65 20 44 54 53 20 |wers. Wh|ile DTS |
|000001d0| 68 61 73 20 63 68 65 63 | 6b 65 64 20 74 68 65 20 |has chec|ked the |
|000001e0| 63 6f 6e 74 65 6e 74 20 | 66 6f 72 20 61 63 63 75 |content |for accu|
|000001f0| 72 61 63 79 2a 2c 20 51 | 26 41 20 54 65 63 68 20 |racy*, Q|&A Tech |
|00000200| 4e 6f 74 65 20 63 6f 6e | 74 65 6e 74 20 64 6f 65 |Note con|tent doe|
|00000210| 73 6e d5 74 20 68 61 76 | 65 20 74 68 65 20 65 64 |sn.t hav|e the ed|
|00000220| 69 74 69 6e 67 20 61 6e | 64 20 6f 72 67 61 6e 69 |iting an|d organi|
|00000230| 7a 61 74 69 6f 6e 20 6f | 66 20 6f 74 68 65 72 20 |zation o|f other |
|00000240| 54 65 63 68 20 4e 6f 74 | 65 73 2e 20 54 68 65 20 |Tech Not|es. The |
|00000250| 51 26 41 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |Q&A func|tion is |
|00000260| 74 6f 20 67 65 74 20 6e | 65 77 20 74 65 63 68 6e |to get n|ew techn|
|00000270| 69 63 61 6c 20 75 70 64 | 61 74 65 73 20 74 6f 20 |ical upd|ates to |
|00000280| 79 6f 75 20 71 75 69 63 | 6b 6c 79 2c 20 73 61 76 |you quic|kly, sav|
|00000290| 69 6e 67 20 74 68 65 20 | 70 6f 6c 69 73 68 20 66 |ing the |polish f|
|000002a0| 6f 72 20 77 68 65 6e 20 | 51 26 41 20 69 6e 66 6f |or when |Q&A info|
|000002b0| 72 6d 61 74 69 6f 6e 20 | 6d 69 67 72 61 74 65 73 |rmation |migrates|
|000002c0| 20 69 6e 74 6f 20 72 65 | 66 65 72 65 6e 63 65 20 | into re|ference |
|000002d0| 6d 61 6e 75 61 6c 73 20 | 6f 72 20 6e 6f 6e 51 26 |manuals |or nonQ&|
|000002e0| 41 20 54 65 63 68 20 4e | 6f 74 65 73 2e 20 51 26 |A Tech N|otes. Q&|
|000002f0| 41 73 20 61 72 65 20 6e | 6f 77 20 69 6e 63 6c 75 |As are n|ow inclu|
|00000300| 64 65 64 20 77 69 74 68 | 20 54 65 63 68 20 4e 6f |ded with| Tech No|
|00000310| 74 65 73 20 74 6f 20 67 | 69 76 65 20 79 6f 75 20 |tes to g|ive you |
|00000320| 65 61 73 69 65 72 20 61 | 63 63 65 73 73 20 74 6f |easier a|ccess to|
|00000330| 20 74 65 63 68 6e 69 63 | 61 6c 20 75 70 64 61 74 | technic|al updat|
|00000340| 65 73 2e 20 49 66 20 79 | 6f 75 20 68 61 76 65 20 |es. If y|ou have |
|00000350| 63 6f 6d 6d 65 6e 74 73 | 20 61 62 6f 75 74 20 51 |comments| about Q|
|00000360| 26 41 20 63 6f 6e 74 65 | 6e 74 20 6f 72 20 64 69 |&A conte|nt or di|
|00000370| 73 74 72 69 62 75 74 69 | 6f 6e 2c 20 70 6c 65 61 |stributi|on, plea|
|00000380| 73 65 20 6c 65 74 20 75 | 73 20 6b 6e 6f 77 20 62 |se let u|s know b|
|00000390| 79 20 41 70 70 6c 65 4c | 69 6e 6b 69 6e 67 20 44 |y AppleL|inking D|
|000003a0| 45 56 46 45 45 44 42 41 | 43 4b 20 6f 72 20 73 65 |EVFEEDBA|CK or se|
|000003b0| 6e 64 69 6e 67 20 61 20 | 6e 6f 74 65 20 74 6f 20 |nding a |note to |
|000003c0| 44 65 76 65 6c 6f 70 65 | 72 20 53 75 70 70 6f 72 |Develope|r Suppor|
|000003d0| 74 2c 20 4d 2f 53 20 37 | 35 2d 32 42 2e 0d 4e 65 |t, M/S 7|5-2B..Ne|
|000003e0| 77 20 51 26 41 73 20 66 | 6f 72 20 74 68 69 73 20 |w Q&As f|or this |
|000003f0| 6d 6f 6e 74 68 20 61 72 | 65 20 6d 61 72 6b 65 64 |month ar|e marked|
|00000400| 20 77 69 74 68 20 61 20 | 62 61 72 20 69 6e 20 74 | with a |bar in t|
|00000410| 68 65 20 73 69 64 65 20 | 6d 61 72 67 69 6e 2e 0d |he side |margin..|
|00000420| 2a 44 54 53 20 69 73 20 | 72 65 76 69 65 77 69 6e |*DTS is |reviewin|
|00000430| 67 20 61 6c 6c 20 74 68 | 65 20 51 26 41 73 20 69 |g all th|e Q&As i|
|00000440| 6e 20 74 68 69 73 20 54 | 65 63 68 20 4e 6f 74 65 |n this T|ech Note|
|00000450| 20 74 6f 20 6d 61 6b 65 | 20 73 75 72 65 20 74 68 | to make| sure th|
|00000460| 65 20 63 6f 6e 74 65 6e | 74 20 69 73 20 73 74 69 |e conten|t is sti|
|00000470| 6c 6c 20 63 75 72 72 65 | 6e 74 2e 20 55 70 64 61 |ll curre|nt. Upda|
|00000480| 74 65 73 20 77 69 6c 6c | 20 62 65 20 69 6e 63 6c |tes will| be incl|
|00000490| 75 64 65 64 20 77 69 74 | 68 20 6e 65 78 74 20 6d |uded wit|h next m|
|000004a0| 6f 6e 74 68 d5 73 20 54 | 65 63 68 20 4e 6f 74 65 |onth.s T|ech Note|
|000004b0| 20 72 65 6c 65 61 73 65 | 2e 0d 4e 65 77 20 51 26 | release|..New Q&|
|000004c0| 41 73 20 66 6f 72 20 74 | 68 69 73 20 6d 6f 6e 74 |As for t|his mont|
|000004d0| 68 20 61 72 65 20 6d 61 | 72 6b 65 64 20 77 69 74 |h are ma|rked wit|
|000004e0| 68 20 61 20 62 61 72 20 | 69 6e 20 74 68 65 20 73 |h a bar |in the s|
|000004f0| 69 64 65 20 6d 61 72 67 | 69 6e 2e 0d 4d 61 63 69 |ide marg|in..Maci|
|00000500| 6e 74 6f 73 68 20 73 6c | 6f 74 20 6e 75 6d 62 65 |ntosh sl|ot numbe|
|00000510| 72 20 61 6e 64 20 67 52 | 65 66 4e 75 6d 0d 48 6f |r and gR|efNum.Ho|
|00000520| 77 20 63 61 6e 20 49 20 | 64 65 74 65 72 6d 69 6e |w can I |determin|
|00000530| 65 20 77 68 61 74 20 68 | 61 72 64 77 61 72 65 20 |e what h|ardware |
|00000540| 64 65 76 69 63 65 20 69 | 73 20 64 72 69 76 65 6e |device i|s driven|
|00000550| 20 62 79 20 61 20 70 61 | 72 74 69 63 75 6c 61 72 | by a pa|rticular|
|00000560| 20 4d 61 63 69 6e 74 6f | 73 68 20 67 44 65 76 69 | Macinto|sh gDevi|
|00000570| 63 65 3f 20 49 20 63 61 | 6e 20 63 61 6c 6c 20 5f |ce? I ca|n call _|
|00000580| 47 65 74 44 65 76 69 63 | 65 4c 69 73 74 20 61 6e |GetDevic|eList an|
|00000590| 64 20 5f 47 65 74 4e 65 | 78 74 44 65 76 69 63 65 |d _GetNe|xtDevice|
|000005a0| 20 74 6f 20 67 65 74 20 | 74 68 65 20 64 72 69 76 | to get |the driv|
|000005b0| 65 72 20 72 65 66 65 72 | 65 6e 63 65 20 6e 75 6d |er refer|ence num|
|000005c0| 62 65 72 20 6f 66 20 65 | 61 63 68 20 67 44 65 76 |ber of e|ach gDev|
|000005d0| 69 63 65 20 62 75 74 20 | 6e 6f 74 20 74 68 65 20 |ice but |not the |
|000005e0| 68 61 72 64 77 61 72 65 | 20 49 44 2e 20 54 68 65 |hardware| ID. The|
|000005f0| 20 73 79 73 74 65 6d 20 | 27 73 63 72 6e 27 20 72 | system |'scrn' r|
|00000600| 65 73 6f 75 72 63 65 20 | 66 6f 72 20 74 68 65 20 |esource |for the |
|00000610| 68 61 72 64 77 61 72 65 | 20 49 44 20 6f 66 20 65 |hardware| ID of e|
|00000620| 61 63 68 20 64 65 76 69 | 63 65 20 64 6f 65 73 6e |ach devi|ce doesn|
|00000630| 27 74 20 67 69 76 65 20 | 6d 65 20 74 68 65 20 64 |'t give |me the d|
|00000640| 72 69 76 65 72 20 72 65 | 66 65 72 65 6e 63 65 20 |river re|ference |
|00000650| 6e 75 6d 62 65 72 2e 20 | 50 61 72 73 69 6e 67 20 |number. |Parsing |
|00000660| 74 68 65 20 73 79 73 74 | 65 6d 20 27 73 63 72 6e |the syst|em 'scrn|
|00000670| 27 20 72 65 73 6f 75 72 | 63 65 2c 20 74 68 65 6e |' resour|ce, then|
|00000680| 20 63 6f 75 6e 74 69 6e | 67 20 74 68 61 74 20 6d | countin|g that m|
|00000690| 61 6e 79 20 77 69 74 68 | 20 5f 47 65 74 44 65 76 |any with| _GetDev|
|000006a0| 69 63 65 4c 69 73 74 20 | 61 6e 64 20 5f 47 65 74 |iceList |and _Get|
|000006b0| 4e 65 78 74 44 65 76 69 | 63 65 20 70 72 6f 64 75 |NextDevi|ce produ|
|000006c0| 63 65 73 20 61 20 64 65 | 76 69 63 65 20 6c 69 73 |ces a de|vice lis|
|000006d0| 74 20 74 68 61 74 20 64 | 6f 65 73 6e 27 74 20 73 |t that d|oesn't s|
|000006e0| 65 65 6d 20 74 6f 20 62 | 65 20 63 6f 6e 73 69 73 |eem to b|e consis|
|000006f0| 74 65 6e 74 6c 79 20 69 | 6e 20 74 68 65 20 73 61 |tently i|n the sa|
|00000700| 6d 65 20 6f 72 64 65 72 | 20 61 73 20 74 68 65 20 |me order| as the |
|00000710| 27 73 63 72 6e 27 20 72 | 65 73 6f 75 72 63 65 2e |'scrn' r|esource.|
|00000720| 0d 5f 5f 5f 0d 4d 79 20 | 69 6d 70 72 65 73 73 69 |.___.My |impressi|
|00000730| 6f 6e 20 69 73 20 74 68 | 61 74 20 79 6f 75 20 64 |on is th|at you d|
|00000740| 6f 6e 27 74 20 6d 61 6b | 65 20 74 68 65 20 63 6f |on't mak|e the co|
|00000750| 6e 6e 65 63 74 69 6f 6e | 20 62 65 74 77 65 65 6e |nnection| between|
|00000760| 20 74 68 65 20 67 52 65 | 66 4e 75 6d 20 61 6e 64 | the gRe|fNum and|
|00000770| 20 74 68 65 20 73 6c 6f | 74 20 6e 75 6d 62 65 72 | the slo|t number|
|00000780| 2e 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |. The fo|llowing |
|00000790| 63 6f 64 65 20 73 68 6f | 77 73 20 68 6f 77 20 74 |code sho|ws how t|
|000007a0| 6f 20 64 6f 20 69 74 3a | 0d 20 20 20 20 44 43 45 |o do it:|. DCE|
|000007b0| 48 61 6e 64 20 3d 20 28 | 41 75 78 44 43 45 48 61 |Hand = (|AuxDCEHa|
|000007c0| 6e 64 6c 65 29 20 26 28 | 2a 55 54 61 62 6c 65 42 |ndle) &(|*UTableB|
|000007d0| 61 73 65 5b 2d 44 65 76 | 49 6e 66 6f 4c 69 73 74 |ase[-Dev|InfoList|
|000007e0| 5b 69 6e 64 65 78 5d 2e | 67 64 52 65 66 4e 75 6d |[index].|gdRefNum|
|000007f0| 20 2d 20 31 5d 29 3b 0d | 20 20 20 20 2f 2a 20 4e | - 1]);.| /* N|
|00000800| 6f 74 65 20 74 68 61 74 | 20 74 68 65 20 70 72 65 |ote that| the pre|
|00000810| 76 69 6f 75 73 20 63 6f | 75 6c 64 20 68 61 76 65 |vious co|uld have|
|00000820| 20 62 65 65 6e 20 61 63 | 63 6f 6d 70 6c 69 73 68 | been ac|complish|
|00000830| 65 64 20 62 79 0d 20 20 | 20 20 44 43 45 48 61 6e |ed by. | DCEHan|
|00000840| 64 20 3d 20 28 41 75 78 | 44 43 45 48 61 6e 64 6c |d = (Aux|DCEHandl|
|00000850| 65 29 20 47 65 74 44 43 | 74 6c 45 6e 74 72 79 28 |e) GetDC|tlEntry(|
|00000860| 44 65 76 49 6e 66 6f 4c | 69 73 74 5b 69 6e 64 65 |DevInfoL|ist[inde|
|00000870| 78 5d 2e 67 64 52 65 66 | 4e 75 6d 29 3b 0d 20 20 |x].gdRef|Num);. |
|00000880| 20 20 42 75 74 20 77 68 | 61 74 20 67 6f 6f 64 20 | But wh|at good |
|00000890| 69 73 20 43 20 69 66 20 | 79 6f 75 20 63 61 6e 6e |is C if |you cann|
|000008a0| 6f 74 20 64 6f 20 74 77 | 69 73 74 65 64 20 74 68 |ot do tw|isted th|
|000008b0| 69 6e 67 73 20 77 69 74 | 68 20 69 74 21 0d 20 20 |ings wit|h it!. |
|000008c0| 20 20 2a 2f 0d 20 20 20 | 20 44 65 76 49 6e 66 6f | */. | DevInfo|
|000008d0| 4c 69 73 74 5b 64 65 76 | 43 6f 75 6e 74 5d 2e 67 |List[dev|Count].g|
|000008e0| 64 53 6c 6f 74 20 3d 20 | 28 2a 44 43 45 48 61 6e |dSlot = |(*DCEHan|
|000008f0| 64 29 20 2d 3e 20 64 43 | 74 6c 53 6c 6f 74 3b 20 |d) -> dC|tlSlot; |
|00000900| 2f 2a 20 67 65 74 20 73 | 6c 6f 74 20 6e 6f 2e 20 |/* get s|lot no. |
|00000910| 2a 2f 0d 4f 6e 63 65 20 | 79 6f 75 20 68 61 76 65 |*/.Once |you have|
|00000920| 20 74 68 65 20 73 6c 6f | 74 20 6e 75 6d 62 65 72 | the slo|t number|
|00000930| 20 79 6f 75 20 63 61 6e | 20 63 61 6c 6c 20 74 68 | you can| call th|
|00000940| 65 20 53 6c 6f 74 20 4d | 61 6e 61 67 65 72 20 74 |e Slot M|anager t|
|00000950| 6f 20 67 65 74 20 74 68 | 65 20 62 6f 61 72 64 20 |o get th|e board |
|00000960| 6e 61 6d 65 20 61 6e 64 | 20 6f 74 68 65 72 20 69 |name and| other i|
|00000970| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 79 6f 75 20 6d |nformati|on you m|
|00000980| 61 79 20 6e 65 65 64 20 | 74 6f 20 69 64 65 6e 74 |ay need |to ident|
|00000990| 69 66 79 20 74 68 65 20 | 64 65 76 69 63 65 2c 20 |ify the |device, |
|000009a0| 61 73 20 69 6e 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |as in th|e follow|
|000009b0| 69 6e 67 20 63 6f 64 65 | 3a 0d 20 20 2f 2a 20 74 |ing code|:. /* t|
|000009c0| 6f 20 66 69 6e 64 20 74 | 68 65 20 62 6f 61 72 64 |o find t|he board|
|000009d0| 20 6e 61 6d 65 20 77 65 | 20 68 61 76 65 20 74 6f | name we| have to|
|000009e0| 20 67 6f 20 69 6e 74 6f | 20 74 68 65 20 73 6c 6f | go into| the slo|
|000009f0| 74 20 6d 61 6e 61 67 65 | 72 20 67 75 74 73 2c 20 |t manage|r guts, |
|00000a00| 61 6e 64 0d 20 20 67 65 | 74 20 74 68 65 20 6e 61 |and. ge|t the na|
|00000a10| 6d 65 20 66 72 6f 6d 20 | 74 68 65 20 62 6f 61 72 |me from |the boar|
|00000a20| 64 20 73 52 65 73 6f 75 | 72 63 65 20 2a 2f 0d 20 |d sResou|rce */. |
|00000a30| 20 20 20 73 70 42 2e 73 | 70 53 6c 6f 74 20 3d 20 | spB.s|pSlot = |
|00000a40| 44 65 76 49 6e 66 6f 4c | 69 73 74 5b 64 65 76 43 |DevInfoL|ist[devC|
|00000a50| 6f 75 6e 74 5d 2e 67 64 | 53 6c 6f 74 3b 0d 20 20 |ount].gd|Slot;. |
|00000a60| 20 20 73 70 42 2e 73 70 | 49 44 20 3d 20 30 3b 0d | spB.sp|ID = 0;.|
|00000a70| 20 20 20 20 73 70 42 2e | 73 70 45 78 74 44 65 76 | spB.|spExtDev|
|00000a80| 20 3d 20 30 3b 0d 20 20 | 20 20 73 70 42 2e 73 70 | = 0;. | spB.sp|
|00000a90| 43 61 74 65 67 6f 72 79 | 20 3d 20 31 3b 0d 20 20 |Category| = 1;. |
|00000aa0| 20 20 73 70 42 2e 73 70 | 43 54 79 70 65 20 3d 20 | spB.sp|CType = |
|00000ab0| 30 3b 0d 20 20 20 20 73 | 70 42 2e 73 70 44 72 76 |0;. s|pB.spDrv|
|00000ac0| 72 53 57 20 3d 20 30 3b | 0d 20 20 20 20 73 70 42 |rSW = 0;|. spB|
|00000ad0| 2e 73 70 44 72 76 72 48 | 57 20 3d 20 30 3b 0d 20 |.spDrvrH|W = 0;. |
|00000ae0| 20 20 20 69 66 20 28 21 | 20 53 4e 65 78 74 54 79 | if (!| SNextTy|
|00000af0| 70 65 73 52 73 72 63 28 | 26 73 70 42 29 20 29 0d |pesRsrc(|&spB) ).|
|00000b00| 20 20 20 20 20 20 7b 0d | 20 20 20 20 20 20 20 20 | {.| |
|00000b10| 73 70 42 2e 73 70 49 44 | 20 3d 20 32 3b 20 20 20 |spB.spID| = 2; |
|00000b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 | | /* |
|00000b30| 47 65 74 20 42 6f 61 72 | 64 20 49 44 20 43 61 72 |Get Boar|d ID Car|
|00000b40| 64 73 20 61 6e 64 20 44 | 72 69 76 65 72 73 20 2a |ds and D|rivers *|
|00000b50| 2f 0d 20 20 20 20 20 20 | 20 20 69 66 20 28 20 21 |/. | if ( !|
|00000b60| 20 53 47 65 74 43 53 74 | 72 69 6e 67 28 26 73 70 | SGetCSt|ring(&sp|
|00000b70| 42 29 20 29 0d 20 20 20 | 20 20 20 20 20 20 20 7b |B) ). | {|
|00000b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b90| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 6c 65 74 | | /* let|
|00000ba0| 20 43 20 75 6e 72 61 76 | 65 6c 20 69 74 73 20 6f | C unrav|el its o|
|00000bb0| 77 6e 20 73 74 72 69 6e | 67 73 20 2a 2f 0d 20 20 |wn strin|gs */. |
|00000bc0| 20 20 20 20 20 20 20 20 | 20 20 66 6f 72 20 28 63 | | for (c|
|00000bd0| 6f 75 6e 74 20 3d 20 30 | 3b 20 44 65 76 49 6e 66 |ount = 0|; DevInf|
|00000be0| 6f 4c 69 73 74 5b 64 65 | 76 43 6f 75 6e 74 5d 2e |oList[de|vCount].|
|00000bf0| 62 64 4e 61 6d 65 5b 63 | 6f 75 6e 74 2b 31 5d 20 |bdName[c|ount+1] |
|00000c00| 3d 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |=. | |
|00000c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c20| 20 20 20 20 20 20 20 2a | 28 28 63 68 61 72 20 2a | *|((char *|
|00000c30| 29 28 73 70 42 2e 73 70 | 52 65 73 75 6c 74 29 2b |)(spB.sp|Result)+|
|00000c40| 63 6f 75 6e 74 29 3b 63 | 6f 75 6e 74 2b 2b 29 3b |count);c|ount++);|
|00000c50| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 44 |. | D|
|00000c60| 65 76 49 6e 66 6f 4c 69 | 73 74 5b 64 65 76 43 6f |evInfoLi|st[devCo|
|00000c70| 75 6e 74 5d 2e 62 64 4e | 61 6d 65 5b 30 5d 20 3d |unt].bdN|ame[0] =|
|00000c80| 20 63 6f 75 6e 74 3b 0d | 20 20 20 20 20 20 20 20 | count;.| |
|00000c90| 20 20 7d 0d 20 20 20 20 | 20 20 7d 0d 58 2d 52 65 | }. | }.X-Re|
|00000ca0| 66 73 3a 0d 49 6e 73 69 | 64 65 20 4d 61 63 69 6e |fs:.Insi|de Macin|
|00000cb0| 74 6f 73 68 20 56 6f 6c | 75 6d 65 20 49 49 2c 20 |tosh Vol|ume II, |
|00000cc0| 70 61 67 65 73 20 31 39 | 30 2d 31 39 32 0d 49 6e |pages 19|0-192.In|
|00000cd0| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 56 |side Mac|intosh V|
|00000ce0| 6f 6c 75 6d 65 20 56 2c | 20 70 61 67 65 20 34 32 |olume V,| page 42|
|00000cf0| 34 0d 44 65 73 69 67 6e | 69 6e 67 20 43 61 72 64 |4.Design|ing Card|
|00000d00| 73 20 61 6e 64 20 44 72 | 69 76 65 72 73 20 66 6f |s and Dr|ivers fo|
|00000d10| 72 20 74 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |r the Ma|cintosh |
|00000d20| 46 61 6d 69 6c 79 0d 43 | 6f 64 65 20 73 6e 69 70 |Family.C|ode snip|
|00000d30| 70 65 74 20 66 6f 72 20 | 67 65 74 74 69 6e 67 20 |pet for |getting |
|00000d40| 4d 61 63 69 6e 74 6f 73 | 68 20 64 69 73 70 6c 61 |Macintos|h displa|
|00000d50| 79 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 0d 49 6e |y inform|ation.In|
|00000d60| 20 6d 79 20 4d 61 63 69 | 6e 74 6f 73 68 20 73 79 | my Maci|ntosh sy|
|00000d70| 73 74 65 6d 2c 20 49 20 | 68 61 76 65 20 74 77 6f |stem, I |have two|
|00000d80| 20 73 63 72 65 65 6e 73 | 2e 20 54 68 65 20 6d 61 | screens|. The ma|
|00000d90| 69 6e 20 73 63 72 65 65 | 6e 20 69 6e 20 61 20 31 |in scree|n in a 1|
|00000da0| 39 22 20 6d 6f 6e 6f 63 | 68 72 6f 6d 65 2e 20 54 |9" monoc|hrome. T|
|00000db0| 68 65 20 73 65 63 6f 6e | 64 20 73 63 72 65 65 6e |he secon|d screen|
|00000dc0| 2c 20 74 6f 20 74 68 65 | 20 6c 65 66 74 20 6f 66 |, to the| left of|
|00000dd0| 20 74 68 65 20 6d 61 69 | 6e 20 6f 6e 65 2c 20 69 | the mai|n one, i|
|00000de0| 73 20 63 6f 6c 6f 72 2e | 20 48 6f 77 20 63 61 6e |s color.| How can|
|00000df0| 20 6d 79 20 70 72 6f 67 | 72 61 6d 20 6b 6e 6f 77 | my prog|ram know|
|00000e00| 20 77 68 65 74 68 65 72 | 20 6f 72 20 6e 6f 74 20 | whether| or not |
|00000e10| 61 20 63 6f 6c 6f 72 20 | 64 69 73 70 6c 61 79 20 |a color |display |
|00000e20| 69 73 20 61 76 61 69 6c | 61 62 6c 65 2c 20 69 74 |is avail|able, it|
|00000e30| 73 20 64 65 70 74 68 2c | 20 61 6e 64 20 69 74 73 |s depth,| and its|
|00000e40| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 3f 0d 5f 5f | coordin|ates?.__|
|00000e50| 5f 0d 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |_.The fo|llowing |
|00000e60| 62 69 74 20 6f 66 20 63 | 6f 64 65 20 77 69 6c 6c |bit of c|ode will|
|00000e70| 20 73 68 6f 77 20 79 6f | 75 20 62 61 73 69 63 61 | show yo|u basica|
|00000e80| 6c 6c 79 20 68 6f 77 20 | 74 6f 20 77 61 6c 6b 20 |lly how |to walk |
|00000e90| 74 68 65 20 47 44 65 76 | 69 63 65 20 6c 69 73 74 |the GDev|ice list|
|00000ea0| 20 61 6e 64 20 66 69 6e | 64 20 74 68 65 20 69 6e | and fin|d the in|
|00000eb0| 66 6f 72 6d 61 74 69 6f | 6e 20 79 6f 75 20 77 61 |formatio|n you wa|
|00000ec0| 6e 74 20 66 72 6f 6d 20 | 69 74 2e 20 4d 6f 73 74 |nt from |it. Most|
|00000ed0| 20 6f 66 20 74 68 69 73 | 20 69 6e 66 6f 72 6d 61 | of this| informa|
|00000ee0| 74 69 6f 6e 20 63 61 6e | 20 62 65 20 66 6f 75 6e |tion can| be foun|
|00000ef0| 64 20 6f 6e 20 70 61 67 | 65 73 20 31 31 39 20 61 |d on pag|es 119 a|
|00000f00| 6e 64 20 31 32 34 20 6f | 66 20 49 6e 73 69 64 65 |nd 124 o|f Inside|
|00000f10| 20 4d 61 63 69 6e 74 6f | 73 68 20 56 6f 6c 75 6d | Macinto|sh Volum|
|00000f20| 65 20 56 2e 0d 63 6f 75 | 6e 74 20 3d 20 30 3b 0d |e V..cou|nt = 0;.|
|00000f30| 47 44 65 76 48 61 6e 64 | 20 3d 20 47 65 74 44 65 |GDevHand| = GetDe|
|00000f40| 76 69 63 65 4c 69 73 74 | 28 29 3b 0d 53 63 72 65 |viceList|();.Scre|
|00000f50| 65 6e 52 65 63 74 5b 63 | 6f 75 6e 74 5d 20 3d 20 |enRect[c|ount] = |
|00000f60| 28 2a 28 2a 67 44 65 76 | 48 61 6e 64 29 2d 3e 67 |(*(*gDev|Hand)->g|
|00000f70| 64 50 4d 61 70 29 2d 3e | 62 6f 75 6e 64 73 3b 0d |dPMap)->|bounds;.|
|00000f80| 53 63 72 65 65 6e 44 65 | 70 74 68 5b 63 6f 75 6e |ScreenDe|pth[coun|
|00000f90| 74 5d 20 3d 20 28 2a 28 | 2a 67 44 65 76 48 61 6e |t] = (*(|*gDevHan|
|00000fa0| 64 29 2d 3e 67 64 50 4d | 61 70 29 2d 3e 70 69 78 |d)->gdPM|ap)->pix|
|00000fb0| 65 6c 53 69 7a 65 3b 0d | 53 63 72 65 65 6e 43 6f |elSize;.|ScreenCo|
|00000fc0| 6c 6f 72 5b 63 6f 75 6e | 74 5d 20 3d 20 54 65 73 |lor[coun|t] = Tes|
|00000fd0| 74 44 65 76 69 63 65 41 | 74 74 72 69 62 75 74 65 |tDeviceA|ttribute|
|00000fe0| 20 28 47 44 65 76 48 61 | 6e 64 2c 20 67 64 44 65 | (GDevHa|nd, gdDe|
|00000ff0| 76 54 79 70 65 29 3b 0d | 57 68 69 6c 65 20 28 28 |vType);.|While ((|
|00001000| 47 44 65 76 48 61 6e 64 | 20 3d 20 47 65 74 4e 65 |GDevHand| = GetNe|
|00001010| 78 74 44 65 76 69 63 65 | 28 47 44 65 76 48 61 6e |xtDevice|(GDevHan|
|00001020| 64 29 29 20 21 3d 20 6e | 69 6c 29 20 7b 0d 20 20 |d)) != n|il) {. |
|00001030| 20 20 20 2b 2b 63 6f 75 | 6e 74 3b 0d 20 20 20 20 | ++cou|nt;. |
|00001040| 20 53 63 72 65 65 6e 52 | 65 63 74 5b 63 6f 75 6e | ScreenR|ect[coun|
|00001050| 74 5d 20 3d 20 28 2a 28 | 2a 67 44 65 76 48 61 6e |t] = (*(|*gDevHan|
|00001060| 64 29 2d 3e 67 64 50 4d | 61 70 29 2d 3e 62 6f 75 |d)->gdPM|ap)->bou|
|00001070| 6e 64 73 3b 0d 20 20 20 | 20 20 53 63 72 65 65 6e |nds;. | Screen|
|00001080| 44 65 70 74 68 5b 63 6f | 75 6e 74 5d 20 3d 20 28 |Depth[co|unt] = (|
|00001090| 2a 28 2a 67 44 65 76 48 | 61 6e 64 29 2d 3e 67 64 |*(*gDevH|and)->gd|
|000010a0| 50 4d 61 70 29 2d 3e 70 | 69 78 65 6c 53 69 7a 65 |PMap)->p|ixelSize|
|000010b0| 3b 0d 20 20 20 20 20 53 | 63 72 65 65 6e 43 6f 6c |;. S|creenCol|
|000010c0| 6f 72 5b 63 6f 75 6e 74 | 5d 20 3d 20 54 65 73 74 |or[count|] = Test|
|000010d0| 44 65 76 69 63 65 41 74 | 74 72 69 62 75 74 65 20 |DeviceAt|tribute |
|000010e0| 28 47 44 65 76 48 61 6e | 64 2c 20 67 64 44 65 76 |(GDevHan|d, gdDev|
|000010f0| 54 79 70 65 29 3b 0d 20 | 20 20 20 20 7d 0d 54 65 |Type);. | }.Te|
|00001100| 63 68 6e 69 71 75 65 20 | 66 6f 72 20 4d 61 63 69 |chnique |for Maci|
|00001110| 6e 74 6f 73 68 20 47 43 | 20 63 61 72 64 20 47 57 |ntosh GC| card GW|
|00001120| 6f 72 6c 64 20 61 63 63 | 65 73 73 0d 48 6f 77 20 |orld acc|ess.How |
|00001130| 63 61 6e 20 61 20 4d 61 | 63 69 6e 74 6f 73 68 20 |can a Ma|cintosh |
|00001140| 69 6e 20 32 34 2d 62 69 | 74 20 61 64 64 72 65 73 |in 24-bi|t addres|
|00001150| 73 69 6e 67 20 6d 6f 64 | 65 20 72 65 61 64 20 66 |sing mod|e read f|
|00001160| 72 6f 6d 20 64 69 73 6b | 20 69 6e 74 6f 20 61 20 |rom disk| into a |
|00001170| 47 57 6f 72 6c 64 3f 20 | 49 66 20 74 68 65 20 47 |GWorld? |If the G|
|00001180| 43 20 63 61 72 64 20 69 | 73 20 69 6e 73 74 61 6c |C card i|s instal|
|00001190| 6c 65 64 2c 20 73 6f 6d | 65 74 69 6d 65 73 20 74 |led, som|etimes t|
|000011a0| 68 65 20 47 57 6f 72 6c | 64 20 69 73 20 61 20 33 |he GWorl|d is a 3|
|000011b0| 32 2d 62 69 74 20 6f 6e | 65 20 63 61 63 68 65 64 |2-bit on|e cached|
|000011c0| 20 6f 6e 20 74 68 65 20 | 63 61 72 64 2e 20 48 6f | on the |card. Ho|
|000011d0| 77 20 64 6f 20 77 65 20 | 65 6e 73 75 72 65 20 74 |w do we |ensure t|
|000011e0| 68 65 20 47 57 6f 72 6c | 64 20 77 69 6c 6c 20 62 |he GWorl|d will b|
|000011f0| 65 20 69 6e 20 6d 61 69 | 6e 20 6d 65 6d 6f 72 79 |e in mai|n memory|
|00001200| 3f 0d 5f 5f 0d 57 68 65 | 6e 20 79 6f 75 20 63 72 |?.__.Whe|n you cr|
|00001210| 65 61 74 65 20 79 6f 75 | 72 20 47 57 6f 72 6c 64 |eate you|r GWorld|
|00001220| 2c 20 73 65 74 20 74 68 | 65 20 6b 65 65 70 4c 6f |, set th|e keepLo|
|00001230| 63 61 6c 20 66 6c 61 67 | 20 69 6e 20 74 68 65 20 |cal flag| in the |
|00001240| 66 6c 61 67 73 20 66 69 | 65 6c 64 20 6f 66 20 74 |flags fi|eld of t|
|00001250| 68 65 20 4e 65 77 47 57 | 6f 72 6c 64 20 63 61 6c |he NewGW|orld cal|
|00001260| 6c 2e 20 54 68 69 73 20 | 65 6e 73 75 72 65 73 20 |l. This |ensures |
|00001270| 74 68 61 74 20 74 68 65 | 20 6e 65 77 6c 79 20 63 |that the| newly c|
|00001280| 72 65 61 74 65 64 20 47 | 57 6f 72 6c 64 20 77 69 |reated G|World wi|
|00001290| 6c 6c 20 62 65 20 69 6e | 20 6d 61 69 6e 20 6d 65 |ll be in| main me|
|000012a0| 6d 6f 72 79 20 77 68 65 | 72 65 20 79 6f 75 20 63 |mory whe|re you c|
|000012b0| 61 6e 20 61 63 63 65 73 | 73 20 69 74 2e 20 52 65 |an acces|s it. Re|
|000012c0| 61 64 20 79 6f 75 72 20 | 64 61 74 61 20 69 6e 74 |ad your |data int|
|000012d0| 6f 20 74 68 65 20 47 57 | 6f 72 6c 64 20 61 6e 64 |o the GW|orld and|
|000012e0| 20 74 68 65 6e 20 63 6c | 65 61 72 20 74 68 65 20 | then cl|ear the |
|000012f0| 6b 65 65 70 4c 6f 63 61 | 6c 20 66 6c 61 67 20 77 |keepLoca|l flag w|
|00001300| 69 74 68 20 61 20 63 61 | 6c 6c 20 74 6f 20 53 65 |ith a ca|ll to Se|
|00001310| 74 50 69 78 65 6c 53 74 | 61 74 65 2e 20 54 68 69 |tPixelSt|ate. Thi|
|00001320| 73 20 77 69 6c 6c 20 69 | 73 73 75 65 20 61 20 d2 |s will i|ssue a .|
|00001330| 47 57 6f 72 6c 64 20 68 | 61 73 20 62 65 65 6e 20 |GWorld h|as been |
|00001340| 75 70 64 61 74 65 64 d3 | 20 74 79 70 65 20 6f 66 |updated.| type of|
|00001350| 20 6d 65 73 73 61 67 65 | 2c 20 63 61 75 73 69 6e | message|, causin|
|00001360| 67 20 74 68 65 20 47 57 | 6f 72 6c 64 20 74 6f 20 |g the GW|orld to |
|00001370| 62 65 20 63 61 63 68 65 | 64 20 6f 66 66 20 74 6f |be cache|d off to|
|00001380| 20 74 68 65 20 47 43 20 | 63 61 72 64 2c 20 67 69 | the GC |card, gi|
|00001390| 76 69 6e 67 20 79 6f 75 | 20 74 68 65 20 62 65 73 |ving you| the bes|
|000013a0| 74 20 70 65 72 66 6f 72 | 6d 61 6e 63 65 2e 20 57 |t perfor|mance. W|
|000013b0| 68 65 6e 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 |hen you |want to |
|000013c0| 6c 6f 61 64 20 61 6e 6f | 74 68 65 72 20 69 6d 61 |load ano|ther ima|
|000013d0| 67 65 2c 20 63 61 6c 6c | 20 53 65 74 50 69 78 65 |ge, call| SetPixe|
|000013e0| 6c 53 74 61 74 65 20 61 | 67 61 69 6e 2c 20 73 65 |lState a|gain, se|
|000013f0| 74 74 69 6e 67 20 74 68 | 65 20 6b 65 65 70 4c 6f |tting th|e keepLo|
|00001400| 63 61 6c 20 66 6c 61 67 | 20 74 6f 20 62 72 69 6e |cal flag| to brin|
|00001410| 67 20 74 68 65 20 47 57 | 6f 72 6c 64 20 62 61 63 |g the GW|orld bac|
|00001420| 6b 20 74 6f 20 6d 61 69 | 6e 20 6d 65 6d 6f 72 79 |k to mai|n memory|
|00001430| 2e 20 55 73 69 6e 67 20 | 74 68 69 73 20 74 65 63 |. Using |this tec|
|00001440| 68 6e 69 71 75 65 20 79 | 6f 75 d5 6c 6c 20 62 65 |hnique y|ou.ll be|
|00001450| 20 61 62 6c 65 20 74 6f | 20 6c 6f 61 64 20 79 6f | able to| load yo|
|00001460| 75 72 20 47 57 6f 72 6c | 64 20 61 6e 64 20 63 61 |ur GWorl|d and ca|
|00001470| 63 68 65 20 69 74 20 74 | 6f 6f 2c 20 61 6e 64 20 |che it t|oo, and |
|00001480| 79 6f 75 20 77 6f 6e d5 | 74 20 6e 65 65 64 20 74 |you won.|t need t|
|00001490| 6f 20 72 65 63 72 65 61 | 74 65 20 74 68 65 20 47 |o recrea|te the G|
|000014a0| 57 6f 72 6c 64 20 65 61 | 63 68 20 74 69 6d 65 20 |World ea|ch time |
|000014b0| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 6c 6f 61 64 |you want| to load|
|000014c0| 20 6d 6f 72 65 20 64 61 | 74 61 20 69 6e 74 6f 20 | more da|ta into |
|000014d0| 69 74 2e 0d 4d 61 63 69 | 6e 74 6f 73 68 20 47 57 |it..Maci|ntosh GW|
|000014e0| 6f 72 6c 64 20 62 61 73 | 65 41 64 64 72 65 73 73 |orld bas|eAddress|
|000014f0| 65 73 0d 48 6f 77 20 63 | 61 6e 20 49 20 74 72 61 |es.How c|an I tra|
|00001500| 6e 73 66 6f 72 6d 20 74 | 68 65 20 63 6f 6e 74 65 |nsform t|he conte|
|00001510| 6e 74 20 6f 66 20 61 20 | 47 57 6f 72 6c 64 20 6f |nt of a |GWorld o|
|00001520| 6e 20 61 20 4e 75 42 75 | 73 aa 20 63 61 72 64 3f |n a NuBu|s. card?|
|00001530| 20 54 68 65 20 69 64 65 | 61 20 69 73 20 74 6f 20 | The ide|a is to |
|00001540| 63 6c 6f 6e 65 20 74 68 | 65 20 47 57 6f 72 6c 64 |clone th|e GWorld|
|00001550| 2c 20 63 6f 70 79 20 74 | 68 65 20 64 61 74 61 20 |, copy t|he data |
|00001560| 74 6f 20 74 68 65 20 63 | 61 72 64 2c 20 74 72 61 |to the c|ard, tra|
|00001570| 6e 73 66 6f 72 6d 20 74 | 68 65 6d 2c 20 70 61 74 |nsform t|hem, pat|
|00001580| 63 68 20 74 68 65 20 61 | 64 64 72 65 73 73 20 69 |ch the a|ddress i|
|00001590| 6e 74 6f 20 74 68 65 20 | 47 57 6f 72 6c 64 2c 20 |nto the |GWorld, |
|000015a0| 61 6e 64 20 64 69 73 70 | 6c 61 79 20 74 68 65 6d |and disp|lay them|
|000015b0| 20 64 69 72 65 63 74 6c | 79 20 6f 6e 20 74 68 65 | directl|y on the|
|000015c0| 20 73 63 72 65 65 6e 2e | 20 49 ab 64 20 6c 69 6b | screen.| I.d lik|
|000015d0| 65 20 74 6f 20 64 6f 20 | 69 74 20 69 6e 20 61 20 |e to do |it in a |
|000015e0| 77 61 79 20 74 68 61 74 | 20 77 6f 72 6b 73 20 77 |way that| works w|
|000015f0| 65 6c 6c 20 77 69 74 68 | 20 74 68 65 20 38 a5 32 |ell with| the 8.2|
|00001600| 34 20 47 43 20 61 6e 64 | 20 73 69 6d 69 6c 61 72 |4 GC and| similar|
|00001610| 20 61 73 79 6e 63 68 72 | 6f 6e 6f 75 73 20 51 75 | asynchr|onous Qu|
|00001620| 69 63 6b 44 72 61 77 20 | 73 74 75 66 66 2e 0d 5f |ickDraw |stuff.._|
|00001630| 5f 5f 0d 4e 65 77 47 57 | 6f 72 6c 64 20 61 6c 6c |__.NewGW|orld all|
|00001640| 6f 63 61 74 65 73 20 6f | 66 66 2d 73 63 72 65 65 |ocates o|ff-scree|
|00001650| 6e 20 62 75 66 66 65 72 | 73 20 73 69 6d 70 6c 79 |n buffer|s simply|
|00001660| 20 62 79 20 75 73 69 6e | 67 20 74 68 65 20 73 61 | by usin|g the sa|
|00001670| 6d 65 20 4d 65 6d 6f 72 | 79 20 4d 61 6e 61 67 65 |me Memor|y Manage|
|00001680| 72 20 63 61 6c 6c 73 20 | 74 68 61 74 20 79 6f 75 |r calls |that you|
|00001690| 20 61 6e 64 20 49 20 6d | 61 6b 65 2e 20 54 6f 20 | and I m|ake. To |
|000016a0| 61 63 74 75 61 6c 6c 79 | 20 61 6c 6c 6f 63 61 74 |actually| allocat|
|000016b0| 65 20 74 68 65 20 6d 65 | 6d 6f 72 79 20 69 74 20 |e the me|mory it |
|000016c0| 73 69 6d 70 6c 79 20 63 | 61 6c 6c 73 20 4e 65 77 |simply c|alls New|
|000016d0| 48 61 6e 64 6c 65 20 74 | 6f 20 61 6c 6c 6f 63 61 |Handle t|o alloca|
|000016e0| 74 65 20 74 68 65 20 62 | 75 66 66 65 72 20 69 6e |te the b|uffer in|
|000016f0| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00001700| 6e d5 73 20 68 65 61 70 | 20 69 66 20 79 6f 75 20 |n.s heap| if you |
|00001710| 68 61 76 65 20 74 68 65 | 20 75 73 65 54 65 6d 70 |have the| useTemp|
|00001720| 4d 65 6d 20 28 6e 8e 65 | 20 75 73 65 4d 46 54 65 |Mem (n.e| useMFTe|
|00001730| 6d 70 29 20 62 69 74 20 | 63 6c 65 61 72 2e 20 49 |mp) bit |clear. I|
|00001740| 74 20 74 68 65 6e 20 74 | 72 69 65 73 20 74 6f 20 |t then t|ries to |
|00001750| 6d 6f 76 65 20 69 74 20 | 61 73 20 68 69 67 68 20 |move it |as high |
|00001760| 69 6e 20 79 6f 75 72 20 | 68 65 61 70 20 61 73 20 |in your |heap as |
|00001770| 70 6f 73 73 69 62 6c 65 | 20 62 79 20 63 61 6c 6c |possible| by call|
|00001780| 69 6e 67 20 4d 6f 76 65 | 48 48 69 2e 20 49 66 20 |ing Move|HHi. If |
|00001790| 79 6f 75 20 68 61 76 65 | 20 74 68 65 20 75 73 65 |you have| the use|
|000017a0| 54 65 6d 70 4d 65 6d 20 | 62 69 74 20 73 65 74 2c |TempMem |bit set,|
|000017b0| 20 74 68 65 6e 20 4e 65 | 77 47 57 6f 72 6c 64 20 | then Ne|wGWorld |
|000017c0| 75 73 65 73 20 74 68 65 | 20 74 65 6d 70 6f 72 61 |uses the| tempora|
|000017d0| 72 79 20 6d 65 6d 6f 72 | 79 20 63 61 6c 6c 73 20 |ry memor|y calls |
|000017e0| 74 6f 20 61 6c 6c 6f 63 | 61 74 65 20 74 68 65 20 |to alloc|ate the |
|000017f0| 6f 66 66 2d 73 63 72 65 | 65 6e 20 62 75 66 66 65 |off-scre|en buffe|
|00001800| 72 20 69 6e 20 74 65 6d | 70 6f 72 61 72 79 20 6d |r in tem|porary m|
|00001810| 65 6d 6f 72 79 2c 20 61 | 6e 64 20 74 68 65 6e 20 |emory, a|nd then |
|00001820| 69 74 20 74 72 69 65 73 | 20 74 6f 20 6d 6f 76 65 |it tries| to move|
|00001830| 20 69 74 20 61 73 20 68 | 69 67 68 20 61 73 20 70 | it as h|igh as p|
|00001840| 6f 73 73 69 62 6c 65 20 | 69 6e 20 74 68 65 20 74 |ossible |in the t|
|00001850| 65 6d 70 6f 72 61 72 79 | 20 6d 65 6d 6f 72 79 20 |emporary| memory |
|00001860| 73 70 61 63 65 2e 20 54 | 68 61 74 d5 73 20 72 65 |space. T|hat.s re|
|00001870| 61 6c 6c 79 20 61 6c 6c | 20 74 68 65 72 65 20 69 |ally all| there i|
|00001880| 73 20 74 6f 20 69 74 2e | 20 54 68 65 20 47 57 6f |s to it.| The GWo|
|00001890| 72 6c 64 d5 73 20 50 69 | 78 4d 61 70 2c 20 47 44 |rld.s Pi|xMap, GD|
|000018a0| 65 76 69 63 65 20 61 6e | 64 20 43 47 72 61 66 50 |evice an|d CGrafP|
|000018b0| 6f 72 74 20 61 72 65 20 | 61 6c 6c 6f 63 61 74 65 |ort are |allocate|
|000018c0| 64 20 73 69 6d 69 6c 61 | 72 6c 79 d1 74 68 65 79 |d simila|rly.they|
|000018d0| d5 72 65 20 61 6c 6c 20 | 61 6c 6c 6f 63 61 74 65 |.re all |allocate|
|000018e0| 64 20 69 6e 20 79 6f 75 | 72 20 68 65 61 70 20 75 |d in you|r heap u|
|000018f0| 73 69 6e 67 20 72 65 67 | 75 6c 61 72 20 4d 65 6d |sing reg|ular Mem|
|00001900| 6f 72 79 20 4d 61 6e 61 | 67 65 72 20 63 61 6c 6c |ory Mana|ger call|
|00001910| 73 20 77 69 74 68 20 6e | 6f 20 73 70 65 63 69 61 |s with n|o specia|
|00001920| 6c 20 6f 70 74 69 6f 6e | 73 2c 20 70 61 74 63 68 |l option|s, patch|
|00001930| 65 73 2c 20 6f 72 20 6f | 74 68 65 72 20 6e 65 66 |es, or o|ther nef|
|00001940| 61 72 69 6f 75 73 20 74 | 72 69 63 6b 73 2e 0d 4e |arious t|ricks..N|
|00001950| 6f 6e 65 20 6f 66 20 74 | 68 69 73 20 63 68 61 6e |one of t|his chan|
|00001960| 67 65 73 20 77 68 65 6e | 20 79 6f 75 20 68 61 76 |ges when| you hav|
|00001970| 65 20 74 68 65 20 38 a5 | 32 34 20 47 43 20 73 6f |e the 8.|24 GC so|
|00001980| 66 74 77 61 72 65 20 61 | 63 74 69 76 65 d1 61 6c |ftware a|ctive.al|
|00001990| 6c 20 6d 65 6d 6f 72 79 | 20 69 73 20 61 6c 6c 6f |l memory| is allo|
|000019a0| 63 61 74 65 64 20 6f 75 | 74 20 6f 66 20 79 6f 75 |cated ou|t of you|
|000019b0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e d5 73 20 |r applic|ation.s |
|000019c0| 68 65 61 70 2e 20 4f 6e | 63 65 20 79 6f 75 20 73 |heap. On|ce you s|
|000019d0| 74 61 72 74 20 64 72 61 | 77 69 6e 67 20 69 6e 74 |tart dra|wing int|
|000019e0| 6f 20 74 68 65 20 47 57 | 6f 72 6c 64 2c 20 74 68 |o the GW|orld, th|
|000019f0| 6f 75 67 68 2c 20 74 68 | 65 20 47 43 20 73 6f 66 |ough, th|e GC sof|
|00001a00| 74 77 61 72 65 20 63 61 | 6e 20 63 6f 70 79 20 74 |tware ca|n copy t|
|00001a10| 68 65 20 70 61 72 74 73 | 20 6f 66 20 61 20 47 57 |he parts| of a GW|
|00001a20| 6f 72 6c 64 20 74 6f 20 | 74 68 65 20 38 a5 32 34 |orld to |the 8.24|
|00001a30| 20 47 43 20 6d 65 6d 6f | 72 79 2e 20 54 68 65 20 | GC memo|ry. The |
|00001a40| 47 57 6f 72 6c 64 20 61 | 6e 64 20 69 74 73 20 70 |GWorld a|nd its p|
|00001a50| 61 72 74 73 20 67 6f 20 | 73 74 69 6c 6c 20 6f 63 |arts go |still oc|
|00001a60| 63 75 70 79 20 79 6f 75 | 72 20 68 65 61 70 d5 73 |cupy you|r heap.s|
|00001a70| 20 6d 65 6d 6f 72 79 20 | 74 68 6f 75 67 68 2c 20 | memory |though, |
|00001a80| 72 65 67 61 72 64 6c 65 | 73 73 20 6f 66 20 77 68 |regardle|ss of wh|
|00001a90| 65 74 68 65 72 20 69 74 | d5 73 20 63 61 63 68 65 |ether it|.s cache|
|00001aa0| 64 20 6f 6e 20 74 68 65 | 20 38 a5 32 34 20 47 43 |d on the| 8.24 GC|
|00001ab0| 20 63 61 72 64 20 6f 72 | 20 6e 6f 74 2e 0d 49 66 | card or| not..If|
|00001ac0| 20 79 6f 75 20 68 61 76 | 65 20 61 20 4e 75 42 75 | you hav|e a NuBu|
|00001ad0| 73 20 63 61 72 64 20 77 | 69 74 68 20 67 6f 62 73 |s card w|ith gobs|
|00001ae0| 20 6f 66 20 6d 65 6d 6f | 72 79 2c 20 4e 65 77 47 | of memo|ry, NewG|
|00001af0| 57 6f 72 6c 64 20 63 61 | 6e d5 74 20 74 61 6b 65 |World ca|n.t take|
|00001b00| 20 61 64 76 61 6e 74 61 | 67 65 20 6f 66 20 69 74 | advanta|ge of it|
|00001b10| 20 62 65 63 61 75 73 65 | 20 74 68 65 20 4d 65 6d | because| the Mem|
|00001b20| 6f 72 79 20 4d 61 6e 61 | 67 65 72 20 63 61 6c 6c |ory Mana|ger call|
|00001b30| 73 20 74 68 61 74 20 69 | 74 20 75 73 65 73 20 63 |s that i|t uses c|
|00001b40| 61 6e d5 74 20 61 6c 6c | 6f 63 61 74 65 20 6d 65 |an.t all|ocate me|
|00001b50| 6d 6f 72 79 20 6f 6e 20 | 4e 75 42 75 73 20 6d 65 |mory on |NuBus me|
|00001b60| 6d 6f 72 79 20 63 61 72 | 64 73 2e 20 54 68 65 72 |mory car|ds. Ther|
|00001b70| 65 20 61 72 65 20 6e 6f | 20 6f 70 74 69 6f 6e 73 |e are no| options|
|00001b80| 20 74 6f 20 4e 65 77 47 | 57 6f 72 6c 64 20 6f 72 | to NewG|World or|
|00001b90| 20 61 6e 79 20 6f 74 68 | 65 72 20 47 57 6f 72 6c | any oth|er GWorl|
|00001ba0| 64 20 63 61 6c 6c 73 20 | 74 68 61 74 20 6c 65 74 |d calls |that let|
|00001bb0| 20 79 6f 75 20 73 61 79 | 2c 20 d2 74 68 65 72 65 | you say|, .there|
|00001bc0| d5 73 20 6c 6f 74 73 20 | 6f 66 20 6d 65 6d 6f 72 |.s lots |of memor|
|00001bd0| 79 20 6f 76 65 72 20 6f | 6e 20 74 68 69 73 20 4e |y over o|n this N|
|00001be0| 75 42 75 73 20 63 61 72 | 64 2c 20 61 6c 6c 20 66 |uBus car|d, all f|
|00001bf0| 6f 72 20 79 6f 75 2e d3 | 20 54 68 61 74 20 6d 65 |or you..| That me|
|00001c00| 61 6e 73 20 74 68 61 74 | 20 47 57 6f 72 6c 64 73 |ans that| GWorlds|
|00001c10| 20 61 72 65 6e d5 74 20 | 61 70 70 72 6f 70 72 69 | aren.t |appropri|
|00001c20| 61 74 65 20 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |ate if y|ou want |
|00001c30| 74 6f 20 68 61 76 65 20 | 63 6f 6e 74 72 6f 6c 20 |to have |control |
|00001c40| 6f 76 65 72 20 77 68 65 | 72 65 20 74 68 65 20 6f |over whe|re the o|
|00001c50| 66 66 2d 73 63 72 65 65 | 6e 20 62 75 66 66 65 72 |ff-scree|n buffer|
|00001c60| 20 69 73 20 61 6c 6c 6f | 63 61 74 65 64 2e 20 43 | is allo|cated. C|
|00001c70| 6f 6e 63 65 69 76 61 62 | 6c 79 2c 20 79 6f 75 20 |onceivab|ly, you |
|00001c80| 63 6f 75 6c 64 20 61 6c | 6c 6f 63 61 74 65 20 61 |could al|locate a|
|00001c90| 20 47 57 6f 72 6c 64 2c | 20 73 74 75 66 66 20 74 | GWorld,| stuff t|
|00001ca0| 68 65 20 61 64 64 72 65 | 73 73 20 6f 66 20 79 6f |he addre|ss of yo|
|00001cb0| 75 72 20 4e 75 42 75 73 | 20 6d 65 6d 6f 72 79 20 |ur NuBus| memory |
|00001cc0| 63 61 72 64 20 69 6e 74 | 6f 20 74 68 65 20 62 61 |card int|o the ba|
|00001cd0| 73 65 41 64 64 72 20 6f | 66 20 79 6f 75 72 20 47 |seAddr o|f your G|
|00001ce0| 57 6f 72 6c 64 d5 73 20 | 50 69 78 4d 61 70 2c 20 |World.s |PixMap, |
|00001cf0| 61 6e 64 20 74 68 65 6e | 20 70 75 74 20 74 68 65 |and then| put the|
|00001d00| 20 63 6f 6e 73 74 61 6e | 74 20 62 61 73 65 41 64 | constan|t baseAd|
|00001d10| 64 72 33 32 20 69 6e 74 | 6f 20 69 74 73 20 70 6d |dr32 int|o its pm|
|00001d20| 56 65 72 73 69 6f 6e 20 | 66 69 65 6c 64 2c 20 62 |Version |field, b|
|00001d30| 75 74 20 65 6e 67 69 6e | 65 65 72 69 6e 67 20 68 |ut engin|eering h|
|00001d40| 65 72 65 20 64 69 64 6e | d5 74 20 66 65 65 6c 20 |ere didn|.t feel |
|00001d50| 76 65 72 79 20 63 6f 6d | 66 6f 72 74 61 62 6c 65 |very com|fortable|
|00001d60| 20 77 69 74 68 20 74 68 | 61 74 20 69 64 65 61 20 | with th|at idea |
|00001d70| 62 65 63 61 75 73 65 20 | 6f 66 20 63 6f 6d 70 61 |because |of compa|
|00001d80| 74 69 62 69 6c 69 74 79 | 20 63 6f 6e 63 65 72 6e |tibility| concern|
|00001d90| 73 2e 0d 51 75 69 63 6b | 44 72 61 77 20 69 73 20 |s..Quick|Draw is |
|00001da0| 74 68 65 20 6f 6e 6c 79 | 20 74 68 69 6e 67 20 74 |the only| thing t|
|00001db0| 68 61 74 d5 73 20 73 75 | 70 70 6f 73 65 64 20 74 |hat.s su|pposed t|
|00001dc0| 6f 20 6b 6e 6f 77 20 68 | 6f 77 20 47 57 6f 72 6c |o know h|ow GWorl|
|00001dd0| 64 73 20 61 72 65 20 63 | 6f 6e 73 74 72 75 63 74 |ds are c|onstruct|
|00001de0| 65 64 2e 20 57 65 20 6b | 6e 6f 77 20 74 68 61 74 |ed. We k|now that|
|00001df0| 20 74 68 65 79 d5 72 65 | 20 43 47 72 61 66 50 6f | they.re| CGrafPo|
|00001e00| 72 74 73 20 61 6e 64 20 | 77 65 20 63 61 6e 20 67 |rts and |we can g|
|00001e10| 65 74 20 74 68 65 69 72 | 20 50 69 78 4d 61 70 2c |et their| PixMap,|
|00001e20| 20 47 44 65 76 69 63 65 | 2c 20 61 6e 64 20 6f 66 | GDevice|, and of|
|00001e30| 66 2d 73 63 72 65 65 6e | 20 62 75 66 66 65 72 2c |f-screen| buffer,|
|00001e40| 20 62 75 74 20 77 65 20 | 63 61 6e d5 74 20 6d 61 | but we |can.t ma|
|00001e50| 6b 65 20 61 6e 79 20 61 | 73 73 75 6d 70 74 69 6f |ke any a|ssumptio|
|00001e60| 6e 73 20 61 62 6f 75 74 | 20 68 6f 77 20 74 68 65 |ns about| how the|
|00001e70| 79 20 77 65 72 65 20 61 | 6c 6c 6f 63 61 74 65 64 |y were a|llocated|
|00001e80| 20 61 6e 64 20 77 68 65 | 72 65 20 74 68 65 79 20 | and whe|re they |
|00001e90| 61 72 65 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |are. For| example|
|00001ea0| 2c 20 77 65 20 6b 6e 6f | 77 20 74 68 61 74 20 74 |, we kno|w that t|
|00001eb0| 68 65 20 6f 66 66 2d 73 | 63 72 65 65 6e 20 62 75 |he off-s|creen bu|
|00001ec0| 66 66 65 72 20 69 73 20 | 61 6c 6c 6f 63 61 74 65 |ffer is |allocate|
|00001ed0| 64 20 61 73 20 61 20 68 | 61 6e 64 6c 65 20 6e 6f |d as a h|andle no|
|00001ee0| 77 2c 20 62 75 74 20 74 | 68 61 74 20 77 6f 6e d5 |w, but t|hat won.|
|00001ef0| 74 20 6e 65 63 65 73 73 | 61 72 69 6c 79 20 62 65 |t necess|arily be|
|00001f00| 20 74 68 65 20 63 61 73 | 65 20 69 6e 20 74 68 65 | the cas|e in the|
|00001f10| 20 66 75 74 75 72 65 2e | 20 54 68 65 72 65 d5 73 | future.| There.s|
|00001f20| 20 6e 6f 20 67 75 61 72 | 61 6e 74 65 65 64 20 77 | no guar|anteed w|
|00001f30| 61 79 20 74 6f 20 74 65 | 6c 6c 20 77 68 69 63 68 |ay to te|ll which|
|00001f40| 20 77 61 79 20 69 74 20 | 77 61 73 20 61 6c 6c 6f | way it |was allo|
|00001f50| 63 61 74 65 64 2c 20 6f | 72 20 65 76 65 6e 20 69 |cated, o|r even i|
|00001f60| 66 20 4e 65 77 47 57 6f | 72 6c 64 20 75 73 65 73 |f NewGWo|rld uses|
|00001f70| 20 74 68 65 20 4d 65 6d | 6f 72 79 20 4d 61 6e 61 | the Mem|ory Mana|
|00001f80| 67 65 72 20 74 6f 20 61 | 6c 6c 6f 63 61 74 65 20 |ger to a|llocate |
|00001f90| 69 74 20 61 74 20 61 6c | 6c 20 28 77 68 69 63 68 |it at al|l (which|
|00001fa0| 20 69 74 20 61 6c 77 61 | 79 73 20 64 6f 65 73 20 | it alwa|ys does |
|00001fb0| 63 75 72 72 65 6e 74 6c | 79 20 6f 66 20 63 6f 75 |currentl|y of cou|
|00001fc0| 72 73 65 29 2e 20 45 76 | 65 6e 20 74 68 65 20 47 |rse). Ev|en the G|
|00001fd0| 57 6f 72 6c 64 d5 73 20 | 43 47 72 61 66 50 6f 72 |World.s |CGrafPor|
|00001fe0| 74 20 69 73 20 61 6c 6c | 6f 63 61 74 65 64 20 61 |t is all|ocated a|
|00001ff0| 73 20 61 20 68 61 6e 64 | 6c 65 20 77 68 69 63 68 |s a hand|le which|
|00002000| 20 6a 75 73 74 20 68 61 | 70 70 65 6e 73 20 74 6f | just ha|ppens to|
|00002010| 20 62 65 20 61 6c 77 61 | 79 73 20 6c 6f 63 6b 65 | be alwa|ys locke|
|00002020| 64 2e 20 49 66 20 79 6f | 75 20 74 72 79 20 74 6f |d. If yo|u try to|
|00002030| 20 64 69 73 70 6f 73 65 | 20 6f 66 20 61 20 47 57 | dispose| of a GW|
|00002040| 6f 72 6c 64 20 69 6e 20 | 77 68 69 63 68 20 79 6f |orld in |which yo|
|00002050| 75 d5 76 65 20 6d 6f 64 | 69 66 69 65 64 20 74 68 |u.ve mod|ified th|
|00002060| 65 20 62 61 73 65 41 64 | 64 72 2c 20 79 6f 75 d5 |e baseAd|dr, you.|
|00002070| 6c 6c 20 6e 65 65 64 20 | 44 69 73 70 6f 73 65 47 |ll need |DisposeG|
|00002080| 57 6f 72 6c 64 20 74 6f | 20 6d 61 6b 65 20 73 75 |World to| make su|
|00002090| 72 65 20 65 76 65 72 79 | 74 68 69 6e 67 20 69 73 |re every|thing is|
|000020a0| 20 64 65 61 6c 6c 6f 63 | 61 74 65 64 20 70 72 6f | dealloc|ated pro|
|000020b0| 70 65 72 6c 79 2c 20 62 | 75 74 20 69 74 d5 6c 6c |perly, b|ut it.ll|
|000020c0| 20 61 63 74 20 75 6e 70 | 72 65 64 69 63 74 61 62 | act unp|redictab|
|000020d0| 6c 79 20 77 68 65 6e 20 | 69 74 20 74 72 69 65 73 |ly when |it tries|
|000020e0| 20 74 6f 20 64 65 61 6c | 6c 6f 63 61 74 65 20 74 | to deal|locate t|
|000020f0| 68 65 20 6f 66 66 2d 73 | 63 72 65 65 6e 20 62 75 |he off-s|creen bu|
|00002100| 66 66 65 72 2e 0d 53 6f | 20 69 66 20 79 6f 75 20 |ffer..So| if you |
|00002110| 77 61 6e 74 20 74 6f 20 | 75 73 65 20 74 68 65 20 |want to |use the |
|00002120| 6d 65 6d 6f 72 79 20 6f | 6e 20 79 6f 75 72 20 4e |memory o|n your N|
|00002130| 75 42 75 73 20 6d 65 6d | 6f 72 79 20 63 61 72 64 |uBus mem|ory card|
|00002140| 2c 20 79 6f 75 d5 72 65 | 20 67 6f 69 6e 67 20 74 |, you.re| going t|
|00002150| 6f 20 68 61 76 65 20 74 | 6f 20 63 72 65 61 74 65 |o have t|o create|
|00002160| 20 79 6f 75 72 20 6f 77 | 6e 20 50 69 78 4d 61 70 | your ow|n PixMap|
|00002170| 2c 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 20 28 69 |, color |table (i|
|00002180| 66 20 69 74 20 6e 65 65 | 64 73 20 6f 6e 65 29 2c |f it nee|ds one),|
|00002190| 20 47 44 65 76 69 63 65 | 2c 20 61 6e 64 20 43 47 | GDevice|, and CG|
|000021a0| 72 61 66 50 6f 72 74 2e | 20 54 65 63 68 6e 69 63 |rafPort.| Technic|
|000021b0| 61 6c 20 4e 6f 74 65 20 | 23 31 32 30 2c 20 d2 44 |al Note |#120, .D|
|000021c0| 72 61 77 69 6e 67 20 49 | 6e 74 6f 20 61 6e 20 4f |rawing I|nto an O|
|000021d0| 66 66 2d 53 63 72 65 65 | 6e 20 50 69 78 4d 61 70 |ff-Scree|n PixMap|
|000021e0| d3 20 63 6f 76 65 72 73 | 20 63 72 65 61 74 69 6e |. covers| creatin|
|000021f0| 67 20 79 6f 75 72 20 6f | 77 6e 20 50 69 78 4d 61 |g your o|wn PixMa|
|00002200| 70 2c 20 43 47 72 61 66 | 50 6f 72 74 2c 20 61 6e |p, CGraf|Port, an|
|00002210| 64 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 2c 20 62 |d color |table, b|
|00002220| 75 74 20 69 74 20 68 61 | 73 20 74 68 65 20 73 61 |ut it ha|s the sa|
|00002230| 6d 65 20 64 65 70 74 68 | 20 61 6e 64 20 65 71 75 |me depth| and equ|
|00002240| 69 76 61 6c 65 6e 74 20 | 63 6f 6c 6f 72 20 74 61 |ivalent |color ta|
|00002250| 62 6c 65 20 74 6f 20 74 | 68 65 20 73 63 72 65 65 |ble to t|he scree|
|00002260| 6e 2c 20 73 6f 20 69 74 | 20 6a 75 73 74 20 73 74 |n, so it| just st|
|00002270| 65 61 6c 73 20 61 20 73 | 63 72 65 65 6e d5 73 20 |eals a s|creen.s |
|00002280| 47 44 65 76 69 63 65 2e | 20 49 20 74 68 69 6e 6b |GDevice.| I think|
|00002290| 20 69 74 d5 73 20 61 6c | 77 61 79 73 20 61 20 67 | it.s al|ways a g|
|000022a0| 6f 6f 64 20 69 64 65 61 | 20 74 6f 20 63 72 65 61 |ood idea| to crea|
|000022b0| 74 65 20 79 6f 75 72 20 | 6f 77 6e 20 47 44 65 76 |te your |own GDev|
|000022c0| 69 63 65 20 77 68 65 6e | 20 79 6f 75 20 64 72 61 |ice when| you dra|
|000022d0| 77 20 6f 66 66 20 73 63 | 72 65 65 6e 2e 20 49 66 |w off sc|reen. If|
|000022e0| 20 79 6f 75 20 75 73 65 | 20 61 20 73 63 72 65 65 | you use| a scree|
|000022f0| 6e d5 73 20 47 44 65 76 | 69 63 65 2c 20 74 68 65 |n.s GDev|ice, the|
|00002300| 6e 20 79 6f 75 20 68 61 | 76 65 20 74 6f 20 64 65 |n you ha|ve to de|
|00002310| 70 65 6e 64 20 6f 6e 20 | 74 68 61 74 20 47 44 65 |pend on |that GDe|
|00002320| 76 69 63 65 d5 73 20 64 | 65 70 74 68 20 61 6e 64 |vice.s d|epth and|
|00002330| 20 63 6f 6c 6f 72 20 74 | 61 62 6c 65 2e 20 42 79 | color t|able. By|
|00002340| 20 63 72 65 61 74 69 6e | 67 20 79 6f 75 72 20 6f | creatin|g your o|
|00002350| 77 6e 20 47 44 65 76 69 | 63 65 2c 20 79 6f 75 72 |wn GDevi|ce, your|
|00002360| 20 6f 66 66 2d 73 63 72 | 65 65 6e 20 64 72 61 77 | off-scr|een draw|
|00002370| 69 6e 67 20 63 61 6e 20 | 75 73 65 20 61 6e 79 20 |ing can |use any |
|00002380| 64 65 70 74 68 20 61 6e | 64 20 63 6f 6c 6f 72 20 |depth an|d color |
|00002390| 74 61 62 6c 65 20 79 6f | 75 20 77 61 6e 74 20 61 |table yo|u want a|
|000023a0| 74 20 61 6e 79 20 74 69 | 6d 65 2c 20 61 6e 64 20 |t any ti|me, and |
|000023b0| 43 6f 6c 6f 72 20 51 75 | 69 63 6b 44 72 61 77 20 |Color Qu|ickDraw |
|000023c0| 77 6f 6e d5 74 20 63 68 | 6f 6b 65 2e 0d 54 6f 20 |won.t ch|oke..To |
|000023d0| 63 72 65 61 74 65 20 79 | 6f 75 72 20 6f 77 6e 20 |create y|our own |
|000023e0| 47 44 65 76 69 63 65 2c | 20 69 74 d5 73 20 62 65 |GDevice,| it.s be|
|000023f0| 74 74 65 72 20 6e 6f 74 | 20 74 6f 20 75 73 65 20 |tter not| to use |
|00002400| 4e 65 77 47 44 65 76 69 | 63 65 20 62 65 63 61 75 |NewGDevi|ce becau|
|00002410| 73 65 20 69 74 20 61 6c | 77 61 79 73 20 63 72 65 |se it al|ways cre|
|00002420| 61 74 65 73 20 74 68 65 | 20 47 44 65 76 69 63 65 |ates the| GDevice|
|00002430| 20 69 6e 20 74 68 65 20 | 73 79 73 74 65 6d 20 68 | in the |system h|
|00002440| 65 61 70 2c 20 61 6e 64 | 20 69 74 d5 73 20 6a 75 |eap, and| it.s ju|
|00002450| 73 74 20 62 65 74 74 65 | 72 20 74 6f 20 6b 65 65 |st bette|r to kee|
|00002460| 70 20 79 6f 75 72 20 6f | 77 6e 20 64 61 74 61 20 |p your o|wn data |
|00002470| 73 74 72 75 63 74 75 72 | 65 73 20 69 6e 20 79 6f |structur|es in yo|
|00002480| 75 72 20 6f 77 6e 20 68 | 65 61 70 2e 20 48 65 72 |ur own h|eap. Her|
|00002490| 65 d5 73 20 77 68 61 74 | 20 79 6f 75 20 73 68 6f |e.s what| you sho|
|000024a0| 75 6c 64 20 73 65 74 20 | 65 61 63 68 20 6f 66 20 |uld set |each of |
|000024b0| 69 74 73 20 66 69 65 6c | 64 73 20 74 6f 20 62 65 |its fiel|ds to be|
|000024c0| 3a 0d 67 64 52 65 66 4e | 75 6d 20 2d 20 59 6f 75 |:.gdRefN|um - You|
|000024d0| 72 20 47 44 65 76 69 63 | 65 20 68 61 73 20 6e 6f |r GDevic|e has no|
|000024e0| 20 64 72 69 76 65 72 2c | 20 73 6f 20 6a 75 73 74 | driver,| so just|
|000024f0| 20 73 65 74 20 74 68 69 | 73 20 74 6f 20 7a 65 72 | set thi|s to zer|
|00002500| 6f 2e 0d 67 64 49 44 20 | 2d 20 49 74 20 64 6f 65 |o..gdID |- It doe|
|00002510| 73 6e d5 74 20 6d 61 74 | 74 65 72 20 77 68 61 74 |sn.t mat|ter what|
|00002520| 20 79 6f 75 20 73 65 74 | 20 74 68 69 73 20 74 6f | you set| this to|
|00002530| 3b 20 6d 69 67 68 74 20 | 61 73 20 77 65 6c 6c 20 |; might |as well |
|00002540| 73 65 74 20 69 74 20 74 | 6f 20 7a 65 72 6f 2e 0d |set it t|o zero..|
|00002550| 67 64 54 79 70 65 20 2d | 20 53 65 74 20 74 68 69 |gdType -| Set thi|
|00002560| 73 20 74 6f 20 32 20 69 | 66 20 79 6f 75 72 20 6f |s to 2 i|f your o|
|00002570| 66 66 20 73 63 72 65 65 | 6e 20 75 73 65 73 20 64 |ff scree|n uses d|
|00002580| 69 72 65 63 74 20 63 6f | 6c 6f 72 73 20 28 31 36 |irect co|lors (16|
|00002590| 20 6f 72 20 33 32 20 62 | 69 74 73 20 70 65 72 20 | or 32 b|its per |
|000025a0| 70 69 78 65 6c 29 20 6f | 72 20 30 20 69 66 20 79 |pixel) o|r 0 if y|
|000025b0| 6f 75 72 20 6f 66 66 20 | 73 63 72 65 65 6e 20 75 |our off |screen u|
|000025c0| 73 65 73 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 20 |ses colo|r table |
|000025d0| 28 31 20 74 68 72 6f 75 | 67 68 20 38 20 62 69 74 |(1 throu|gh 8 bit|
|000025e0| 73 20 70 65 72 20 70 69 | 78 65 6c 29 2e 0d 67 64 |s per pi|xel)..gd|
|000025f0| 49 54 61 62 6c 65 20 2d | 20 41 6c 6c 6f 63 61 74 |ITable -| Allocat|
|00002600| 65 20 61 20 73 6d 61 6c | 6c 20 28 6d 61 79 62 65 |e a smal|l (maybe|
|00002610| 20 6a 75 73 74 20 32 2d | 62 79 74 65 29 20 68 61 | just 2-|byte) ha|
|00002620| 6e 64 6c 65 20 66 6f 72 | 20 74 68 69 73 20 66 69 |ndle for| this fi|
|00002630| 65 6c 64 2e 20 41 66 74 | 65 72 20 79 6f 75 d5 72 |eld. Aft|er you.r|
|00002640| 65 20 64 6f 6e 65 20 73 | 65 74 74 69 6e 67 20 75 |e done s|etting u|
|00002650| 70 20 74 68 69 73 20 47 | 44 65 76 69 63 65 20 61 |p this G|Device a|
|00002660| 6e 64 20 79 6f 75 72 20 | 6f 66 66 2d 73 63 72 65 |nd your |off-scre|
|00002670| 65 6e 20 50 69 78 4d 61 | 70 2c 20 63 6f 6c 6f 72 |en PixMa|p, color|
|00002680| 20 74 61 62 6c 65 20 28 | 69 66 20 61 6e 79 29 20 | table (|if any) |
|00002690| 61 6e 64 20 43 47 72 61 | 66 50 6f 72 74 2c 20 74 |and CGra|fPort, t|
|000026a0| 68 65 6e 20 73 65 74 20 | 74 68 69 73 20 47 44 65 |hen set |this GDe|
|000026b0| 76 69 63 65 20 61 73 20 | 74 68 65 20 63 75 72 72 |vice as |the curr|
|000026c0| 65 6e 74 20 47 44 65 76 | 69 63 65 20 62 79 20 63 |ent GDev|ice by c|
|000026d0| 61 6c 6c 69 6e 67 20 53 | 65 74 47 44 65 76 69 63 |alling S|etGDevic|
|000026e0| 65 2c 20 61 6e 64 20 74 | 68 65 6e 20 63 61 6c 6c |e, and t|hen call|
|000026f0| 20 4d 61 6b 65 49 54 61 | 62 6c 65 2c 20 70 61 73 | MakeITa|ble, pas|
|00002700| 73 69 6e 67 20 69 74 20 | 4e 49 4c 20 66 6f 72 20 |sing it |NIL for |
|00002710| 62 6f 74 68 20 74 68 65 | 20 63 6f 6c 6f 72 20 74 |both the| color t|
|00002720| 61 62 6c 65 20 61 6e 64 | 20 69 6e 76 65 72 73 65 |able and| inverse|
|00002730| 20 74 61 62 6c 65 20 70 | 61 72 61 6d 65 74 65 72 | table p|arameter|
|00002740| 73 2c 20 61 6e 64 20 30 | 20 66 6f 72 20 74 68 65 |s, and 0| for the|
|00002750| 20 70 72 65 66 65 72 72 | 65 64 20 69 6e 76 65 72 | preferr|ed inver|
|00002760| 73 65 20 74 61 62 6c 65 | 20 72 65 73 6f 6c 75 74 |se table| resolut|
|00002770| 69 6f 6e 2e 0d 67 64 52 | 65 73 50 72 65 66 20 2d |ion..gdR|esPref -|
|00002780| 20 50 72 6f 62 61 62 6c | 79 20 6d 6f 72 65 20 74 | Probabl|y more t|
|00002790| 68 61 6e 20 39 39 2e 39 | 25 20 6f 66 20 61 6c 6c |han 99.9|% of all|
|000027a0| 20 69 6e 76 65 72 73 65 | 20 74 61 62 6c 65 73 20 | inverse| tables |
|000027b0| 6f 75 74 20 74 68 65 72 | 65 20 68 61 76 65 20 61 |out ther|e have a|
|000027c0| 20 72 65 73 6f 6c 75 74 | 69 6f 6e 20 6f 66 20 34 | resolut|ion of 4|
|000027d0| 2e 20 55 6e 6c 65 73 73 | 20 79 6f 75 20 68 61 76 |. Unless| you hav|
|000027e0| 65 20 73 6f 6d 65 20 72 | 65 61 73 6f 6e 20 6e 6f |e some r|eason no|
|000027f0| 74 20 74 6f 2c 20 49 d5 | 64 20 72 65 63 6f 6d 6d |t to, I.|d recomm|
|00002800| 65 6e 64 20 74 68 65 20 | 73 61 6d 65 20 68 65 72 |end the |same her|
|00002810| 65 2e 0d 67 64 53 65 61 | 72 63 68 50 72 6f 63 20 |e..gdSea|rchProc |
|00002820| 2d 20 53 65 74 20 74 6f | 20 4e 49 4c 2e 20 55 73 |- Set to| NIL. Us|
|00002830| 65 20 41 64 64 53 65 61 | 72 63 68 20 69 66 20 79 |e AddSea|rch if y|
|00002840| 6f 75 20 77 61 6e 74 20 | 74 6f 20 75 73 65 20 61 |ou want |to use a|
|00002850| 20 53 65 61 72 63 68 50 | 72 6f 63 2e 0d 67 64 43 | SearchP|roc..gdC|
|00002860| 6f 6d 70 50 72 6f 63 20 | 2d 20 53 65 74 20 74 6f |ompProc |- Set to|
|00002870| 20 4e 49 4c 2e 20 55 73 | 65 20 41 64 64 43 6f 6d | NIL. Us|e AddCom|
|00002880| 70 20 69 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |p if you| want to|
|00002890| 20 75 73 65 20 61 20 43 | 6f 6d 70 50 72 6f 63 2e | use a C|ompProc.|
|000028a0| 0d 67 64 46 6c 61 67 73 | 20 2d 20 53 65 74 20 74 |.gdFlags| - Set t|
|000028b0| 6f 20 30 20 69 6e 69 74 | 69 61 6c 6c 79 2c 20 61 |o 0 init|ially, a|
|000028c0| 6e 64 20 74 68 65 6e 20 | 75 73 65 20 53 65 74 44 |nd then |use SetD|
|000028d0| 65 76 69 63 65 41 74 74 | 72 69 62 75 74 65 20 61 |eviceAtt|ribute a|
|000028e0| 66 74 65 72 20 79 6f 75 | d5 76 65 20 73 65 74 20 |fter you|.ve set |
|000028f0| 75 70 20 74 68 65 20 72 | 65 73 74 20 6f 66 20 74 |up the r|est of t|
|00002900| 68 69 73 20 47 44 65 76 | 69 63 65 2e 0d 67 64 50 |his GDev|ice..gdP|
|00002910| 4d 61 70 20 2d 20 53 65 | 74 20 74 68 69 73 20 74 |Map - Se|t this t|
|00002920| 6f 20 62 65 20 61 20 68 | 61 6e 64 6c 65 20 74 6f |o be a h|andle to|
|00002930| 20 79 6f 75 72 20 6f 66 | 66 2d 73 63 72 65 65 6e | your of|f-screen|
|00002940| 20 50 69 78 4d 61 70 2e | 0d 67 64 52 65 66 43 6f | PixMap.|.gdRefCo|
|00002950| 6e 20 2d 20 53 65 74 20 | 74 68 69 73 20 74 6f 20 |n - Set |this to |
|00002960| 77 68 61 74 65 76 65 72 | 20 79 6f 75 20 77 61 6e |whatever| you wan|
|00002970| 74 2e 0d 67 64 4e 65 78 | 74 47 44 20 2d 20 53 65 |t..gdNex|tGD - Se|
|00002980| 74 20 74 68 69 73 20 74 | 6f 20 6e 69 6c 2e 0d 67 |t this t|o nil..g|
|00002990| 64 52 65 63 74 20 2d 20 | 53 65 74 20 74 68 69 73 |dRect - |Set this|
|000029a0| 20 74 6f 20 62 65 20 65 | 71 75 61 6c 20 74 6f 20 | to be e|qual to |
|000029b0| 79 6f 75 72 20 6f 66 66 | 2d 73 63 72 65 65 6e 20 |your off|-screen |
|000029c0| 50 69 78 4d 61 70 d5 73 | 20 62 6f 75 6e 64 73 2e |PixMap.s| bounds.|
|000029d0| 0d 67 64 4d 6f 64 65 20 | 2d 20 53 65 74 20 74 68 |.gdMode |- Set th|
|000029e0| 69 73 20 74 6f 20 2d 31 | 2e 20 57 68 79 3f 20 49 |is to -1|. Why? I|
|000029f0| d5 6d 20 6e 6f 74 20 73 | 75 72 65 2e 20 54 68 69 |.m not s|ure. Thi|
|00002a00| 73 20 69 73 20 69 6e 74 | 65 6e 64 65 64 20 66 6f |s is int|ended fo|
|00002a10| 72 20 47 44 65 76 69 63 | 65 73 20 77 69 74 68 20 |r GDevic|es with |
|00002a20| 64 72 69 76 65 72 73 20 | 61 6e 79 77 61 79 2e 0d |drivers |anyway..|
|00002a30| 67 64 43 43 42 79 74 65 | 73 20 2d 20 53 65 74 20 |gdCCByte|s - Set |
|00002a40| 74 6f 20 30 2e 0d 67 64 | 43 43 44 65 70 74 68 20 |to 0..gd|CCDepth |
|00002a50| 2d 20 53 65 74 20 74 6f | 20 30 2e 0d 67 64 43 43 |- Set to| 0..gdCC|
|00002a60| 58 44 61 74 61 20 2d 20 | 53 65 74 20 74 6f 20 30 |XData - |Set to 0|
|00002a70| 2e 0d 67 64 43 43 58 4d | 61 73 6b 20 2d 20 53 65 |..gdCCXM|ask - Se|
|00002a80| 74 20 74 6f 20 30 2e 0d | 67 64 52 65 73 65 72 76 |t to 0..|gdReserv|
|00002a90| 65 64 20 2d 20 53 65 74 | 20 74 6f 20 30 2e 0d 46 |ed - Set| to 0..F|
|00002aa0| 6f 72 20 67 64 46 6c 61 | 67 73 2c 20 79 6f 75 20 |or gdFla|gs, you |
|00002ab0| 73 68 6f 75 6c 64 20 75 | 73 65 20 53 65 74 44 65 |should u|se SetDe|
|00002ac0| 76 69 63 65 41 74 74 72 | 69 62 75 74 65 20 74 6f |viceAttr|ibute to|
|00002ad0| 20 73 65 74 20 74 68 65 | 20 6e 6f 44 72 69 76 65 | set the| noDrive|
|00002ae0| 72 20 62 69 74 20 61 6e | 64 20 74 68 65 20 67 64 |r bit an|d the gd|
|00002af0| 44 65 76 54 79 70 65 20 | 62 69 74 2e 20 59 6f 75 |DevType |bit. You|
|00002b00| 20 73 68 6f 75 6c 64 20 | 73 65 74 20 74 68 65 20 | should |set the |
|00002b10| 67 44 65 76 54 79 70 65 | 20 62 69 74 20 74 6f 20 |gDevType| bit to |
|00002b20| 31 20 65 76 65 6e 20 69 | 66 20 79 6f 75 20 68 61 |1 even i|f you ha|
|00002b30| 76 65 20 61 20 6d 6f 6e | 6f 63 68 72 6f 6d 65 20 |ve a mon|ochrome |
|00002b40| 63 6f 6c 6f 72 20 74 61 | 62 6c 65 2e 20 54 68 65 |color ta|ble. The|
|00002b50| 20 30 20 73 65 74 74 69 | 6e 67 20 77 61 73 20 6f | 0 setti|ng was o|
|00002b60| 6e 6c 79 20 75 73 65 64 | 20 66 6f 72 20 74 68 65 |nly used| for the|
|00002b70| 20 64 61 79 73 20 77 68 | 65 6e 20 6d 6f 6e 6f 63 | days wh|en monoc|
|00002b80| 68 72 6f 6d 65 20 6d 6f | 64 65 20 77 61 73 20 68 |hrome mo|de was h|
|00002b90| 61 6e 64 6c 65 64 20 62 | 79 20 74 68 65 20 76 69 |andled b|y the vi|
|00002ba0| 64 65 6f 20 64 72 69 76 | 65 72 2c 20 77 68 69 63 |deo driv|er, whic|
|00002bb0| 68 20 33 32 2d 42 69 74 | 20 51 75 69 63 6b 44 72 |h 32-Bit| QuickDr|
|00002bc0| 61 77 20 65 6c 69 6d 69 | 6e 61 74 65 64 2e 20 59 |aw elimi|nated. Y|
|00002bd0| 6f 75 72 20 47 44 65 76 | 69 63 65 20 64 6f 65 73 |our GDev|ice does|
|00002be0| 6e d5 74 20 68 61 76 65 | 20 61 20 64 72 69 76 65 |n.t have| a drive|
|00002bf0| 72 20 61 6e 79 77 61 79 | 2e 0d 4f 6e 65 20 6c 61 |r anyway|..One la|
|00002c00| 73 74 20 77 61 72 6e 69 | 6e 67 20 69 73 20 74 68 |st warni|ng is th|
|00002c10| 61 74 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 73 65 |at you s|hould se|
|00002c20| 74 20 74 68 65 20 70 6d | 56 65 72 73 69 6f 6e 20 |t the pm|Version |
|00002c30| 66 69 65 6c 64 20 6f 66 | 20 79 6f 75 72 20 50 69 |field of| your Pi|
|00002c40| 78 4d 61 70 20 74 6f 20 | 62 65 20 74 68 65 20 63 |xMap to |be the c|
|00002c50| 6f 6e 73 74 61 6e 74 20 | 62 61 73 65 41 64 64 72 |onstant |baseAddr|
|00002c60| 33 32 20 28 65 71 75 61 | 6c 73 20 34 29 2e 20 54 |32 (equa|ls 4). T|
|00002c70| 68 61 74 20 74 65 6c 6c | 73 20 43 6f 6c 6f 72 20 |hat tell|s Color |
|00002c80| 51 75 69 63 6b 44 72 61 | 77 20 74 6f 20 75 73 65 |QuickDra|w to use|
|00002c90| 20 33 32 2d 62 69 74 20 | 61 64 64 72 65 73 73 69 | 32-bit |addressi|
|00002ca0| 6e 67 20 6d 6f 64 65 20 | 74 6f 20 61 63 63 65 73 |ng mode |to acces|
|00002cb0| 73 20 79 6f 75 72 20 6f | 66 66 2d 73 63 72 65 65 |s your o|ff-scree|
|00002cc0| 6e 20 62 75 66 66 65 72 | 2c 20 61 6e 64 20 74 68 |n buffer|, and th|
|00002cd0| 61 74 d5 73 20 61 20 72 | 65 71 75 69 72 65 6d 65 |at.s a r|equireme|
|00002ce0| 6e 74 20 69 66 20 79 6f | 75 72 20 6f 66 66 2d 73 |nt if yo|ur off-s|
|00002cf0| 63 72 65 65 6e 20 62 75 | 66 66 65 72 20 69 73 20 |creen bu|ffer is |
|00002d00| 61 6c 6c 6f 63 61 74 65 | 64 20 6f 6e 20 61 20 4e |allocate|d on a N|
|00002d10| 75 42 75 73 20 63 61 72 | 64 2e 0d 55 70 64 61 74 |uBus car|d..Updat|
|00002d20| 65 47 57 6f 72 6c 64 20 | 64 69 74 68 65 72 69 6e |eGWorld |ditherin|
|00002d30| 67 20 62 75 67 20 77 6f | 72 6b 61 72 6f 75 6e 64 |g bug wo|rkaround|
|00002d40| 0d 55 70 64 61 74 65 47 | 57 6f 72 6c 64 20 64 6f |.UpdateG|World do|
|00002d50| 65 73 6e d5 74 20 73 65 | 65 6d 20 74 6f 20 72 65 |esn.t se|em to re|
|00002d60| 73 70 6f 6e 64 20 74 6f | 20 74 68 65 20 64 69 74 |spond to| the dit|
|00002d70| 68 65 72 50 69 78 20 66 | 6c 61 67 20 75 6e 6c 65 |herPix f|lag unle|
|00002d80| 73 73 20 63 6f 6c 6f 72 | 20 64 65 70 74 68 20 63 |ss color| depth c|
|00002d90| 68 61 6e 67 65 73 2e 20 | 54 68 65 20 72 65 74 75 |hanges. |The retu|
|00002da0| 72 6e 20 66 6c 61 67 20 | 61 66 74 65 72 20 63 68 |rn flag |after ch|
|00002db0| 61 6e 67 69 6e 67 20 6d | 79 20 63 6f 6c 6f 72 20 |anging m|y color |
|00002dc0| 74 61 62 6c 65 20 69 73 | 20 30 78 31 30 30 30 30 |table is| 0x10000|
|00002dd0| 2c 20 69 6e 64 69 63 61 | 74 69 6e 67 20 74 68 61 |, indica|ting tha|
|00002de0| 74 20 63 6f 6c 6f 72 20 | 6d 61 70 70 69 6e 67 20 |t color |mapping |
|00002df0| 68 61 70 70 65 6e 65 64 | 20 62 75 74 20 6e 6f 74 |happened| but not|
|00002e00| 20 64 69 74 68 65 72 69 | 6e 67 2e 20 49 73 20 74 | ditheri|ng. Is t|
|00002e10| 68 69 73 20 61 20 62 75 | 67 3f 0d 5f 5f 5f 0d 59 |his a bu|g?.___.Y|
|00002e20| 65 73 2c 20 74 68 69 73 | 20 69 73 20 61 20 62 75 |es, this| is a bu|
|00002e30| 67 2e 0d 55 70 64 61 74 | 65 47 57 6f 72 6c 64 20 |g..Updat|eGWorld |
|00002e40| 69 67 6e 6f 72 65 73 20 | 64 69 74 68 65 72 69 6e |ignores |ditherin|
|00002e50| 67 20 69 66 20 6e 6f 20 | 64 65 70 74 68 20 63 68 |g if no |depth ch|
|00002e60| 61 6e 67 65 20 69 73 20 | 6d 61 64 65 2e 20 55 70 |ange is |made. Up|
|00002e70| 64 61 74 65 47 57 6f 72 | 6c 64 20 70 72 6f 62 61 |dateGWor|ld proba|
|00002e80| 62 6c 79 20 77 6f 6e d5 | 74 20 62 65 20 63 68 61 |bly won.|t be cha|
|00002e90| 6e 67 65 64 20 69 6e 20 | 74 68 65 20 6e 65 61 72 |nged in |the near|
|00002ea0| 20 66 75 74 75 72 65 2e | 20 54 68 65 20 77 6f 72 | future.| The wor|
|00002eb0| 6b 61 72 6f 75 6e 64 2c | 20 74 68 65 72 65 66 6f |karound,| therefo|
|00002ec0| 72 65 2c 20 69 73 20 61 | 73 20 66 6f 6c 6c 6f 77 |re, is a|s follow|
|00002ed0| 73 3a 0d 31 2e 20 43 65 | 61 74 65 20 61 20 6e 65 |s:.1. Ce|ate a ne|
|00002ee0| 77 20 70 69 78 6d 61 70 | 20 77 69 74 68 20 74 68 |w pixmap| with th|
|00002ef0| 65 20 74 68 65 20 6e 65 | 77 20 63 6f 6c 6f 72 20 |e the ne|w color |
|00002f00| 74 61 62 6c 65 0d 32 2e | 20 43 61 6c 6c 20 43 6f |table.2.| Call Co|
|00002f10| 70 79 42 69 74 73 20 74 | 6f 20 74 72 61 6e 73 66 |pyBits t|o transf|
|00002f20| 65 72 20 79 6f 75 72 20 | 69 6d 61 67 65 20 74 6f |er your |image to|
|00002f30| 20 74 68 65 20 6e 65 77 | 6c 79 20 63 72 65 61 74 | the new|ly creat|
|00002f40| 65 64 20 70 69 78 6d 61 | 70 20 77 69 74 68 20 64 |ed pixma|p with d|
|00002f50| 69 74 68 65 72 69 6e 67 | 20 66 72 6f 6d 20 74 68 |ithering| from th|
|00002f60| 65 20 6f 72 69 67 69 6e | 61 6c 20 47 57 6f 72 6c |e origin|al GWorl|
|00002f70| 64 d5 73 20 70 69 78 6d | 61 70 0d 33 2e 20 55 70 |d.s pixm|ap.3. Up|
|00002f80| 64 61 74 65 20 74 68 65 | 20 47 57 6f 72 6c 64 20 |date the| GWorld |
|00002f90| 77 69 74 68 20 74 68 65 | 20 6e 65 77 20 63 6f 6c |with the| new col|
|00002fa0| 6f 72 20 74 61 62 6c 65 | 20 77 69 74 68 6f 75 74 |or table| without|
|00002fb0| 20 75 73 69 6e 67 20 64 | 69 74 68 65 72 50 69 78 | using d|itherPix|
|00002fc0| 0d 34 2e 20 55 73 65 20 | 43 6f 70 79 42 69 74 73 |.4. Use |CopyBits|
|00002fd0| 20 66 72 6f 6d 20 74 68 | 65 20 6e 65 77 6c 79 20 | from th|e newly |
|00002fe0| 63 72 65 61 74 65 64 20 | 70 69 78 6d 61 70 20 77 |created |pixmap w|
|00002ff0| 69 74 68 6f 75 74 20 64 | 69 74 68 65 72 69 6e 67 |ithout d|ithering|
|00003000| 20 62 61 63 6b 20 74 6f | 20 74 68 65 20 47 57 6f | back to| the GWo|
|00003010| 72 6c 64 2e 0d 54 68 69 | 73 20 77 69 6c 6c 20 67 |rld..Thi|s will g|
|00003020| 69 76 65 20 79 6f 75 20 | 74 68 65 20 73 61 6d 65 |ive you |the same|
|00003030| 20 65 66 66 65 63 74 20 | 61 73 20 55 70 64 61 74 | effect |as Updat|
|00003040| 65 47 57 6f 72 6c 64 20 | 77 69 74 68 20 64 69 74 |eGWorld |with dit|
|00003050| 68 65 72 50 69 78 2e 0d | 44 72 61 77 69 6e 67 20 |herPix..|Drawing |
|00003060| 69 6e 74 6f 20 47 57 6f | 72 6c 64 20 61 66 74 65 |into GWo|rld afte|
|00003070| 72 20 75 73 69 6e 67 20 | 55 70 64 61 74 65 47 57 |r using |UpdateGW|
|00003080| 6f 72 6c 64 0d 57 68 65 | 6e 20 49 20 72 65 73 69 |orld.Whe|n I resi|
|00003090| 7a 65 20 6d 79 20 72 65 | 61 6c 74 69 6d 65 20 61 |ze my re|altime a|
|000030a0| 6e 69 6d 61 74 69 6f 6e | 20 77 69 6e 64 6f 77 2c |nimation| window,|
|000030b0| 20 49 20 63 61 6c 6c 20 | 55 70 64 61 74 65 47 57 | I call |UpdateGW|
|000030c0| 6f 72 6c 64 20 77 69 74 | 68 20 74 68 65 20 6e 65 |orld wit|h the ne|
|000030d0| 77 20 73 69 7a 65 2c 20 | 61 6e 64 20 61 66 74 65 |w size, |and afte|
|000030e0| 72 20 74 68 61 74 20 61 | 6e 79 20 64 72 61 77 69 |r that a|ny drawi|
|000030f0| 6e 67 20 69 6e 74 6f 20 | 74 68 65 20 47 57 6f 72 |ng into |the GWor|
|00003100| 6c 64 20 68 61 73 20 6e | 6f 20 65 66 66 65 63 74 |ld has n|o effect|
|00003110| d1 61 6c 6d 6f 73 74 20 | 6c 69 6b 65 20 74 68 65 |.almost |like the|
|00003120| 20 63 61 6c 6c 20 74 6f | 20 53 65 74 47 57 6f 72 | call to| SetGWor|
|00003130| 6c 64 20 64 6f 65 73 20 | 6e 6f 74 68 69 6e 67 2e |ld does |nothing.|
|00003140| 20 54 68 69 73 20 73 61 | 6d 65 20 63 6f 64 65 20 | This sa|me code |
|00003150| 77 6f 72 6b 73 20 70 65 | 72 66 65 63 74 6c 79 20 |works pe|rfectly |
|00003160| 69 6e 20 53 79 73 74 65 | 6d 20 37 2e 20 57 68 61 |in Syste|m 7. Wha|
|00003170| 74 20 63 6f 75 6c 64 20 | 63 61 75 73 65 20 74 68 |t could |cause th|
|00003180| 69 73 3f 0d 5f 5f 5f 0d | 59 6f 75 20 70 72 6f 62 |is?.___.|You prob|
|00003190| 61 62 6c 79 20 63 61 6e | d5 74 20 64 72 61 77 20 |ably can|.t draw |
|000031a0| 61 6e 79 74 68 69 6e 67 | 20 69 6e 74 6f 20 79 6f |anything| into yo|
|000031b0| 75 72 20 47 57 6f 72 6c | 64 20 61 66 74 65 72 20 |ur GWorl|d after |
|000031c0| 75 73 69 6e 67 20 55 70 | 64 61 74 65 47 57 6f 72 |using Up|dateGWor|
|000031d0| 6c 64 20 74 6f 20 72 65 | 73 69 7a 65 20 69 74 20 |ld to re|size it |
|000031e0| 69 73 20 62 65 63 61 75 | 73 65 20 6f 66 20 74 68 |is becau|se of th|
|000031f0| 65 20 63 6c 69 70 20 72 | 65 67 69 6f 6e 20 6f 66 |e clip r|egion of|
|00003200| 20 79 6f 75 72 20 47 57 | 6f 72 6c 64 2e 20 55 6e | your GW|orld. Un|
|00003210| 64 65 72 20 73 79 73 74 | 65 6d 20 73 6f 66 74 77 |der syst|em softw|
|00003220| 61 72 65 20 76 65 72 73 | 69 6f 6e 73 20 62 65 66 |are vers|ions bef|
|00003230| 6f 72 65 20 37 2e 30 2c | 20 55 70 64 61 74 65 47 |ore 7.0,| UpdateG|
|00003240| 57 6f 72 6c 64 20 61 6c | 77 61 79 73 20 72 65 73 |World al|ways res|
|00003250| 69 7a 65 73 20 74 68 65 | 20 47 57 6f 72 6c 64 d5 |izes the| GWorld.|
|00003260| 73 20 63 6c 69 70 20 72 | 65 67 69 6f 6e 20 70 72 |s clip r|egion pr|
|00003270| 6f 70 6f 72 74 69 6f 6e | 61 6c 20 74 6f 20 74 68 |oportion|al to th|
|00003280| 65 20 61 6d 6f 75 6e 74 | 20 74 68 61 74 20 74 68 |e amount| that th|
|00003290| 65 20 47 57 6f 72 6c 64 | 20 69 74 73 65 6c 66 20 |e GWorld| itself |
|000032a0| 69 73 20 72 65 73 69 7a | 65 64 2e 20 55 6e 66 6f |is resiz|ed. Unfo|
|000032b0| 72 74 75 6e 61 74 65 6c | 79 2c 20 4e 65 77 47 57 |rtunatel|y, NewGW|
|000032c0| 6f 72 6c 64 20 69 6e 69 | 74 69 61 6c 69 7a 65 73 |orld ini|tializes|
|000032d0| 20 74 68 65 20 63 6c 69 | 70 20 72 65 67 69 6f 6e | the cli|p region|
|000032e0| 20 6f 66 20 74 68 65 20 | 47 57 6f 72 6c 64 20 74 | of the |GWorld t|
|000032f0| 6f 20 74 68 65 20 65 6e | 74 69 72 65 20 51 75 69 |o the en|tire Qui|
|00003300| 63 6b 44 72 61 77 20 63 | 6f 6f 72 64 69 6e 61 74 |ckDraw c|oordinat|
|00003310| 65 20 70 6c 61 6e 65 2c | 20 5b 54 3a 2d 33 32 37 |e plane,| [T:-327|
|00003320| 36 37 20 4c 3a 2d 33 32 | 37 36 37 20 42 3a 33 32 |67 L:-32|767 B:32|
|00003330| 37 36 37 20 52 3a 33 32 | 37 36 37 5d 2e 20 49 66 |767 R:32|767]. If|
|00003340| 20 55 70 64 61 74 65 47 | 57 6f 72 6c 64 20 72 65 | UpdateG|World re|
|00003350| 73 69 7a 65 73 20 61 6e | 79 20 6f 66 20 74 68 65 |sizes an|y of the|
|00003360| 73 65 20 63 6f 6f 72 64 | 69 6e 61 74 65 73 20 73 |se coord|inates s|
|00003370| 6f 20 74 68 61 74 20 74 | 68 65 79 20 66 61 6c 6c |o that t|hey fall|
|00003380| 20 6f 75 74 73 69 64 65 | 20 6f 66 20 74 68 69 73 | outside| of this|
|00003390| 20 72 61 6e 67 65 2c 20 | 74 68 65 6e 20 74 68 65 | range, |then the|
|000033a0| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 20 77 72 61 | coordin|ates wra|
|000033b0| 70 20 61 72 6f 75 6e 64 | 20 74 6f 20 74 68 65 20 |p around| to the |
|000033c0| 6f 74 68 65 72 20 65 6e | 64 20 6f 66 20 74 68 65 |other en|d of the|
|000033d0| 20 73 69 67 6e 65 64 20 | 69 6e 74 65 67 65 72 20 | signed |integer |
|000033e0| 73 70 61 63 65 2c 20 61 | 6e 64 20 74 68 61 74 20 |space, a|nd that |
|000033f0| 6d 61 6b 65 73 20 74 68 | 65 20 63 6c 69 70 20 72 |makes th|e clip r|
|00003400| 65 67 69 6f 6e 20 65 6d | 70 74 79 2e 20 45 6d 70 |egion em|pty. Emp|
|00003410| 74 79 20 63 6c 69 70 20 | 72 65 67 69 6f 6e 73 20 |ty clip |regions |
|00003420| 73 74 6f 70 20 61 6e 79 | 20 64 72 61 77 69 6e 67 |stop any| drawing|
|00003430| 20 66 72 6f 6d 20 68 61 | 70 70 65 6e 69 6e 67 2e | from ha|ppening.|
|00003440| 0d 54 68 65 20 63 68 61 | 6e 67 65 20 74 6f 20 73 |.The cha|nge to s|
|00003450| 79 73 74 65 6d 20 73 6f | 66 74 77 61 72 65 20 76 |ystem so|ftware v|
|00003460| 65 72 73 69 6f 6e 20 37 | 2e 30 20 69 73 20 74 68 |ersion 7|.0 is th|
|00003470| 61 74 20 6e 6f 77 20 55 | 70 64 61 74 65 47 57 6f |at now U|pdateGWo|
|00003480| 72 6c 64 20 65 78 70 6c | 69 63 69 74 6c 79 20 63 |rld expl|icitly c|
|00003490| 68 65 63 6b 73 20 66 6f | 72 20 61 20 63 6c 69 70 |hecks fo|r a clip|
|000034a0| 20 72 65 67 69 6f 6e 20 | 74 68 61 74 20 6c 6f 6f | region |that loo|
|000034b0| 6b 73 20 6c 69 6b 65 20 | 5b 54 3a 2d 33 32 37 36 |ks like |[T:-3276|
|000034c0| 37 20 4c 3a 2d 33 32 37 | 36 37 20 42 3a 33 32 37 |7 L:-327|67 B:327|
|000034d0| 36 37 20 52 3a 33 32 37 | 36 37 5d 2e 20 49 66 20 |67 R:327|67]. If |
|000034e0| 69 74 20 66 69 6e 64 73 | 20 74 68 69 73 2c 20 74 |it finds| this, t|
|000034f0| 68 65 6e 20 69 74 20 64 | 6f 65 73 6e d5 74 20 72 |hen it d|oesn.t r|
|00003500| 65 73 69 7a 65 20 74 68 | 65 20 63 6c 69 70 20 72 |esize th|e clip r|
|00003510| 65 67 69 6f 6e 2e 20 4f | 74 68 65 72 77 69 73 65 |egion. O|therwise|
|00003520| 2c 20 55 70 64 61 74 65 | 47 57 6f 72 6c 64 20 61 |, Update|GWorld a|
|00003530| 63 74 73 20 74 68 65 20 | 73 61 6d 65 20 77 61 79 |cts the |same way|
|00003540| 20 74 68 61 74 20 69 74 | 20 64 69 64 20 62 65 66 | that it| did bef|
|00003550| 6f 72 65 20 37 2e 30 2e | 0d 4f 6e 65 20 6f 66 20 |ore 7.0.|.One of |
|00003560| 6d 79 20 6d 6f 74 74 6f | 65 73 20 69 6e 20 6c 69 |my motto|es in li|
|00003570| 66 65 20 69 73 2c 20 d2 | 6e 65 76 65 72 20 67 69 |fe is, .|never gi|
|00003580| 76 65 20 51 75 69 63 6b | 44 72 61 77 20 61 20 63 |ve Quick|Draw a c|
|00003590| 68 61 6e 63 65 20 74 6f | 20 64 6f 20 74 68 65 20 |hance to| do the |
|000035a0| 77 72 6f 6e 67 20 74 68 | 69 6e 67 2e d3 20 49 6e |wrong th|ing.. In|
|000035b0| 20 6b 65 65 70 69 6e 67 | 20 77 69 74 68 20 74 68 | keeping| with th|
|000035c0| 61 74 2c 20 49 20 61 6c | 77 61 79 73 20 65 78 70 |at, I al|ways exp|
|000035d0| 6c 69 63 69 74 6c 79 20 | 73 65 74 20 74 68 65 20 |licitly |set the |
|000035e0| 63 6c 69 70 20 72 65 67 | 69 6f 6e 73 20 6f 66 20 |clip reg|ions of |
|000035f0| 47 57 6f 72 6c 64 73 20 | 77 68 65 6e 65 76 65 72 |GWorlds |whenever|
|00003600| 20 69 74 20 63 6f 75 6c | 64 20 63 68 61 6e 67 65 | it coul|d change|
|00003610| 2e 20 53 6f 20 61 66 74 | 65 72 20 63 61 6c 6c 69 |. So aft|er calli|
|00003620| 6e 67 20 4e 65 77 47 57 | 6f 72 6c 64 2c 20 73 65 |ng NewGW|orld, se|
|00003630| 74 20 69 74 73 20 63 6c | 69 70 20 72 65 67 69 6f |t its cl|ip regio|
|00003640| 6e 20 74 6f 20 62 65 20 | 63 6f 69 6e 63 69 64 65 |n to be |coincide|
|00003650| 6e 74 20 77 69 74 68 20 | 69 74 73 20 70 6f 72 74 |nt with |its port|
|00003660| 52 65 63 74 2e 20 41 66 | 74 65 72 20 63 61 6c 6c |Rect. Af|ter call|
|00003670| 69 6e 67 20 55 70 64 61 | 74 65 47 57 6f 72 6c 64 |ing Upda|teGWorld|
|00003680| 20 74 6f 20 72 65 73 69 | 7a 65 20 69 74 2c 20 73 | to resi|ze it, s|
|00003690| 65 74 20 69 74 73 20 63 | 6c 69 70 20 72 65 67 69 |et its c|lip regi|
|000036a0| 6f 6e 20 74 6f 20 62 65 | 20 63 6f 69 6e 63 69 64 |on to be| coincid|
|000036b0| 65 6e 74 20 77 69 74 68 | 20 69 74 73 20 6e 65 77 |ent with| its new|
|000036c0| 20 70 6f 72 74 52 65 63 | 74 2e 20 54 68 61 74 20 | portRec|t. That |
|000036d0| 77 61 79 2c 20 79 6f 75 | d5 6c 6c 20 61 6c 77 61 |way, you|.ll alwa|
|000036e0| 79 73 20 68 61 76 65 20 | 61 20 6b 6e 6f 77 6e 20 |ys have |a known |
|000036f0| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 61 6e 64 20 |environm|ent and |
|00003700| 79 6f 75 20 77 6f 6e d5 | 74 20 68 61 76 65 20 74 |you won.|t have t|
|00003710| 6f 20 77 6f 72 72 79 20 | 61 62 6f 75 74 20 74 68 |o worry |about th|
|00003720| 65 20 63 68 61 6e 67 65 | 20 74 68 61 74 20 77 61 |e change| that wa|
|00003730| 73 20 6d 61 64 65 20 69 | 6e 20 53 79 73 74 65 6d |s made i|n System|
|00003740| 20 37 2e 30 2c 20 61 6e | 64 20 79 6f 75 d5 6c 6c | 7.0, an|d you.ll|
|00003750| 20 62 65 20 6c 65 73 73 | 20 73 75 73 63 65 70 74 | be less| suscept|
|00003760| 69 62 6c 65 20 74 6f 20 | 62 75 67 73 20 69 6e 20 |ible to |bugs in |
|00003770| 74 68 69 73 20 61 72 65 | 61 20 69 6e 20 74 68 65 |this are|a in the|
|00003780| 20 66 75 74 75 72 65 2e | 20 49 74 d5 73 20 61 6e | future.| It.s an|
|00003790| 20 65 61 73 79 20 65 6e | 6f 75 67 68 20 77 6f 72 | easy en|ough wor|
|000037a0| 6b 61 72 6f 75 6e 64 20 | 73 6f 20 74 68 61 74 20 |karound |so that |
|000037b0| 69 74 20 68 61 73 20 6e | 6f 20 72 65 61 6c 20 70 |it has n|o real p|
|000037c0| 65 6e 61 6c 74 79 2e 0d | 44 72 61 77 69 6e 67 20 |enalty..|Drawing |
|000037d0| 64 69 6d 6d 65 64 20 6f | 75 74 6c 69 6e 65 20 61 |dimmed o|utline a|
|000037e0| 63 72 6f 73 73 20 73 63 | 72 65 65 6e 73 20 77 69 |cross sc|reens wi|
|000037f0| 74 68 20 64 69 66 66 65 | 72 65 6e 74 20 64 65 70 |th diffe|rent dep|
|00003800| 74 68 73 0d 57 68 65 6e | 20 74 68 65 20 4f 4b 20 |ths.When| the OK |
|00003810| 62 75 74 74 6f 6e 20 69 | 73 20 64 69 73 61 62 6c |button i|s disabl|
|00003820| 65 64 20 69 6e 20 74 68 | 65 20 53 79 73 74 65 6d |ed in th|e System|
|00003830| 20 37 20 53 74 61 6e 64 | 61 72 64 20 46 69 6c 65 | 7 Stand|ard File|
|00003840| 20 64 69 61 6c 6f 67 20 | 62 6f 78 2c 20 69 74 d5 | dialog |box, it.|
|00003850| 73 20 64 72 61 77 6e 20 | 69 6e 20 67 72 61 79 2e |s drawn |in gray.|
|00003860| 20 49 20 77 61 73 20 6c | 6f 6f 6b 69 6e 67 20 66 | I was l|ooking f|
|00003870| 6f 72 20 73 61 6d 70 6c | 65 20 63 6f 64 65 20 6f |or sampl|e code o|
|00003880| 6e 20 68 6f 77 20 74 6f | 20 64 6f 20 74 68 69 73 |n how to| do this|
|00003890| 20 69 6e 20 61 20 77 61 | 79 20 74 68 61 74 20 69 | in a wa|y that i|
|000038a0| 73 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 66 6f |s approp|riate fo|
|000038b0| 72 20 6d 75 6c 74 69 70 | 6c 65 20 73 63 72 65 65 |r multip|le scree|
|000038c0| 6e 73 20 61 74 20 76 61 | 72 69 6f 75 73 20 63 6f |ns at va|rious co|
|000038d0| 6c 6f 72 20 64 65 70 74 | 68 73 2e 20 46 6f 72 20 |lor dept|hs. For |
|000038e0| 65 78 61 6d 70 6c 65 2c | 20 68 6f 77 20 73 68 6f |example,| how sho|
|000038f0| 75 6c 64 20 79 6f 75 20 | 64 72 61 77 20 74 68 65 |uld you |draw the|
|00003900| 20 6f 75 74 6c 69 6e 65 | 20 69 66 20 79 6f 75 20 | outline| if you |
|00003910| 68 61 76 65 20 61 20 4f | 4b 20 62 75 74 74 6f 6e |have a O|K button|
|00003920| 20 69 6e 20 61 20 6d 6f | 76 61 62 6c 65 20 6d 6f | in a mo|vable mo|
|00003930| 64 61 6c 20 64 69 61 6c | 6f 67 20 62 6f 78 20 28 |dal dial|og box (|
|00003940| 77 69 74 68 20 68 61 6c | 66 20 74 68 65 20 4f 4b |with hal|f the OK|
|00003950| 20 62 75 74 74 6f 6e 20 | 6f 6e 20 61 6e 20 38 2d | button |on an 8-|
|00003960| 62 69 74 20 63 6f 6c 6f | 72 20 73 63 72 65 65 6e |bit colo|r screen|
|00003970| 20 61 6e 64 20 74 68 65 | 20 6f 74 68 65 72 20 68 | and the| other h|
|00003980| 61 6c 66 20 6f 6e 20 61 | 20 31 2d 62 69 74 20 6d |alf on a| 1-bit m|
|00003990| 6f 6e 6f 63 68 72 6f 6d | 65 20 73 63 72 65 65 6e |onochrom|e screen|
|000039a0| 29 3f 0d 5f 5f 5f 0d 54 | 68 65 72 65 20 61 72 65 |)?.___.T|here are|
|000039b0| 20 74 77 6f 20 77 61 79 | 73 20 74 6f 20 61 6e 73 | two way|s to ans|
|000039c0| 77 65 72 20 79 6f 75 72 | 20 71 75 65 73 74 69 6f |wer your| questio|
|000039d0| 6e 20 6f 6e 20 68 6f 77 | 20 74 6f 20 64 72 61 77 |n on how| to draw|
|000039e0| 20 74 68 65 20 67 72 61 | 79 20 28 64 69 6d 6d 65 | the gra|y (dimme|
|000039f0| 64 29 20 6f 75 74 6c 69 | 6e 65 20 61 63 72 6f 73 |d) outli|ne acros|
|00003a00| 73 20 73 65 76 65 72 61 | 6c 20 73 63 72 65 65 6e |s severa|l screen|
|00003a10| 73 20 69 6e 20 64 69 66 | 66 65 72 65 6e 74 20 64 |s in dif|ferent d|
|00003a20| 65 70 74 68 73 3a 20 6f | 6e 65 20 75 73 65 73 20 |epths: o|ne uses |
|00003a30| 4d 61 6b 65 52 47 42 50 | 61 74 20 28 49 6e 73 69 |MakeRGBP|at (Insi|
|00003a40| 64 65 20 4d 61 63 69 6e | 74 6f 73 68 20 56 6f 6c |de Macin|tosh Vol|
|00003a50| 75 6d 65 20 56 2c 20 70 | 61 67 65 20 56 2d 37 33 |ume V, p|age V-73|
|00003a60| 29 2c 20 74 68 65 20 6f | 74 68 65 72 20 44 65 76 |), the o|ther Dev|
|00003a70| 69 63 65 4c 6f 6f 70 20 | 28 49 6e 73 69 64 65 20 |iceLoop |(Inside |
|00003a80| 4d 61 63 69 6e 74 6f 73 | 68 20 56 6f 6c 75 6d 65 |Macintos|h Volume|
|00003a90| 20 56 49 2c 20 70 61 67 | 65 20 32 31 2d 32 33 29 | VI, pag|e 21-23)|
|00003aa0| 2e 20 20 4c 6f 6f 6b 20 | 66 6f 72 20 47 72 61 79 |. Look |for Gray|
|00003ab0| 69 73 68 4f 75 74 6c 69 | 6e 65 2e 70 20 69 6e 20 |ishOutli|ne.p in |
|00003ac0| 74 68 65 20 53 6e 69 70 | 70 65 74 73 20 66 6f 6c |the Snip|pets fol|
|00003ad0| 64 65 72 20 6f 6e 20 74 | 68 65 20 64 65 76 65 6c |der on t|he devel|
|00003ae0| 6f 70 65 72 20 43 44 20 | 66 6f 72 20 61 20 63 6f |oper CD |for a co|
|00003af0| 64 65 20 73 61 6d 70 6c | 65 20 74 68 61 74 20 64 |de sampl|e that d|
|00003b00| 65 6d 6f 6e 73 74 72 61 | 74 65 73 20 62 6f 74 68 |emonstra|tes both|
|00003b10| 20 77 61 79 73 2e 0d 54 | 65 73 74 69 6e 67 20 66 | ways..T|esting f|
|00003b20| 6f 72 20 47 57 6f 72 6c | 64 20 61 76 61 69 6c 61 |or GWorl|d availa|
|00003b30| 62 69 6c 69 74 79 0d 48 | 6f 77 20 64 6f 20 49 20 |bility.H|ow do I |
|00003b40| 74 65 6c 6c 20 69 66 20 | 47 57 6f 72 6c 64 20 63 |tell if |GWorld c|
|00003b50| 61 6c 6c 73 20 73 75 63 | 68 20 61 73 20 4e 65 77 |alls suc|h as New|
|00003b60| 47 57 6f 72 6c 64 20 61 | 72 65 20 61 76 61 69 6c |GWorld a|re avail|
|00003b70| 61 62 6c 65 3f 20 49 73 | 20 74 68 65 20 65 78 69 |able? Is| the exi|
|00003b80| 73 74 65 6e 63 65 20 6f | 66 20 33 32 2d 42 69 74 |stence o|f 32-Bit|
|00003b90| 20 43 6f 6c 6f 72 20 51 | 75 69 63 6b 44 72 61 77 | Color Q|uickDraw|
|00003ba0| 20 74 68 65 20 6f 6e 6c | 79 20 63 6f 6e 64 69 74 | the onl|y condit|
|00003bb0| 69 6f 6e 3f 0d 5f 5f 5f | 0d 50 72 65 73 65 6e 63 |ion?.___|.Presenc|
|00003bc0| 65 20 6f 66 20 33 32 2d | 42 69 74 20 51 75 69 63 |e of 32-|Bit Quic|
|00003bd0| 6b 44 72 61 77 20 69 73 | 20 61 20 73 75 66 66 69 |kDraw is| a suffi|
|00003be0| 63 69 65 6e 74 20 62 75 | 74 20 6e 6f 74 20 61 20 |cient bu|t not a |
|00003bf0| 6e 65 63 65 73 73 61 72 | 79 20 63 6f 6e 64 69 74 |necessar|y condit|
|00003c00| 69 6f 6e 20 66 6f 72 20 | 47 57 6f 72 6c 64 20 73 |ion for |GWorld s|
|00003c10| 75 70 70 6f 72 74 2e 20 | 55 6e 64 65 72 20 53 79 |upport. |Under Sy|
|00003c20| 73 74 65 6d 20 37 2c 20 | 47 57 6f 72 6c 64 20 72 |stem 7, |GWorld r|
|00003c30| 6f 75 74 69 6e 65 73 20 | 61 6e 64 20 63 65 72 74 |outines |and cert|
|00003c40| 61 69 6e 20 6f 74 68 65 | 72 20 63 6f 6c 6f 72 20 |ain othe|r color |
|00003c50| 63 61 6c 6c 73 20 61 72 | 65 20 61 6c 6c 6f 77 65 |calls ar|e allowe|
|00003c60| 64 20 6f 6e 20 36 38 30 | 30 30 2d 62 61 73 65 64 |d on 680|00-based|
|00003c70| 20 4d 61 63 69 6e 74 6f | 73 68 20 6d 6f 64 65 6c | Macinto|sh model|
|00003c80| 73 2c 20 65 76 65 6e 20 | 74 68 6f 75 67 68 20 43 |s, even |though C|
|00003c90| 6f 6c 6f 72 20 51 75 69 | 63 6b 44 72 61 77 20 69 |olor Qui|ckDraw i|
|00003ca0| 73 20 6e 6f 74 20 61 76 | 61 69 6c 61 62 6c 65 2e |s not av|ailable.|
|00003cb0| 20 48 6f 77 65 76 65 72 | 2c 20 73 70 65 63 69 61 | However|, specia|
|00003cc0| 6c 20 70 72 65 63 61 75 | 74 69 6f 6e 73 20 6d 75 |l precau|tions mu|
|00003cd0| 73 74 20 62 65 20 74 61 | 6b 65 6e 20 74 6f 20 75 |st be ta|ken to u|
|00003ce0| 73 65 20 47 57 6f 72 6c | 64 73 20 69 6e 20 61 20 |se GWorl|ds in a |
|00003cf0| 63 6f 6d 70 61 74 69 62 | 6c 65 20 77 61 79 2e 0d |compatib|le way..|
|00003d00| 4f 6e 20 61 20 4d 61 63 | 69 6e 74 6f 73 68 20 77 |On a Mac|intosh w|
|00003d10| 69 74 68 6f 75 74 20 43 | 6f 6c 6f 72 20 51 75 69 |ithout C|olor Qui|
|00003d20| 63 6b 44 72 61 77 20 72 | 75 6e 6e 69 6e 67 20 53 |ckDraw r|unning S|
|00003d30| 79 73 74 65 6d 20 37 2e | 30 2c 20 74 68 65 20 47 |ystem 7.|0, the G|
|00003d40| 57 6f 72 6c 64 20 63 72 | 65 61 74 65 64 20 62 79 |World cr|eated by|
|00003d50| 20 4e 65 77 47 57 6f 72 | 6c 64 20 75 73 65 73 20 | NewGWor|ld uses |
|00003d60| 61 6e 20 65 78 74 65 6e | 64 65 64 20 47 72 61 66 |an exten|ded Graf|
|00003d70| 50 6f 72 74 2c 20 6e 6f | 74 20 61 20 43 47 72 61 |Port, no|t a CGra|
|00003d80| 66 50 6f 72 74 2e 20 4e | 65 77 47 57 6f 72 6c 64 |fPort. N|ewGWorld|
|00003d90| 20 77 69 6c 6c 20 72 65 | 74 75 72 6e 20 61 6e 20 | will re|turn an |
|00003da0| 65 72 72 6f 72 20 69 66 | 20 61 73 6b 65 64 20 74 |error if| asked t|
|00003db0| 6f 20 63 72 65 61 74 65 | 20 61 20 47 57 6f 72 6c |o create| a GWorl|
|00003dc0| 64 20 77 69 74 68 20 64 | 65 70 74 68 20 67 72 65 |d with d|epth gre|
|00003dd0| 61 74 65 72 20 74 68 61 | 6e 20 31 20 75 6e 6c 65 |ater tha|n 1 unle|
|00003de0| 73 73 20 43 6f 6c 6f 72 | 20 51 75 69 63 6b 44 72 |ss Color| QuickDr|
|00003df0| 61 77 20 69 73 20 61 76 | 61 69 6c 61 62 6c 65 2e |aw is av|ailable.|
|00003e00| 0d 54 68 65 20 50 69 78 | 4d 61 70 20 66 69 65 6c |.The Pix|Map fiel|
|00003e10| 64 20 6f 66 20 61 20 47 | 57 6f 72 6c 64 20 73 68 |d of a G|World sh|
|00003e20| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 20 61 63 63 65 |ould not| be acce|
|00003e30| 73 73 65 64 20 64 69 72 | 65 63 74 6c 79 3b 20 69 |ssed dir|ectly; i|
|00003e40| 6e 73 74 65 61 64 2c 20 | 75 73 65 20 74 68 65 20 |nstead, |use the |
|00003e50| 66 75 6e 63 74 69 6f 6e | 20 47 65 74 47 57 6f 72 |function| GetGWor|
|00003e60| 6c 64 50 69 78 4d 61 70 | 2e 20 53 69 6d 69 6c 61 |ldPixMap|. Simila|
|00003e70| 72 6c 79 2c 20 74 6f 20 | 6f 62 74 61 69 6e 20 74 |rly, to |obtain t|
|00003e80| 68 65 20 61 64 64 72 65 | 73 73 20 6f 66 20 74 68 |he addre|ss of th|
|00003e90| 65 20 50 69 78 4d 61 70 | 20 64 61 74 61 2c 20 75 |e PixMap| data, u|
|00003ea0| 73 65 20 47 65 74 50 69 | 78 42 61 73 65 41 64 64 |se GetPi|xBaseAdd|
|00003eb0| 72 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 61 63 |r rather| than ac|
|00003ec0| 63 65 73 73 20 74 68 65 | 20 62 61 73 65 41 64 64 |cess the| baseAdd|
|00003ed0| 72 20 66 69 65 6c 64 20 | 6f 66 20 74 68 65 20 50 |r field |of the P|
|00003ee0| 69 78 4d 61 70 2e 20 54 | 68 65 73 65 20 72 6f 75 |ixMap. T|hese rou|
|00003ef0| 74 69 6e 65 73 20 61 72 | 65 20 64 6f 63 75 6d 65 |tines ar|e docume|
|00003f00| 6e 74 65 64 20 69 6e 20 | 74 68 65 20 47 72 61 70 |nted in |the Grap|
|00003f10| 68 69 63 73 20 44 65 76 | 69 63 65 73 20 63 68 61 |hics Dev|ices cha|
|00003f20| 70 74 65 72 20 6f 66 20 | 49 6e 73 69 64 65 20 4d |pter of |Inside M|
|00003f30| 61 63 69 6e 74 6f 73 68 | 20 56 6f 6c 75 6d 65 20 |acintosh| Volume |
|00003f40| 56 49 2e 20 4f 6e 65 2d | 62 69 74 20 47 57 6f 72 |VI. One-|bit GWor|
|00003f50| 6c 64 73 20 61 72 65 20 | 61 6c 73 6f 20 64 69 73 |lds are |also dis|
|00003f60| 63 75 73 73 65 64 20 69 | 6e 20 74 68 65 20 61 72 |cussed i|n the ar|
|00003f70| 74 69 63 6c 65 2c 20 d2 | 51 75 69 63 6b 44 72 61 |ticle, .|QuickDra|
|00003f80| 77 d5 73 20 43 6f 70 79 | 42 69 74 73 20 50 72 6f |w.s Copy|Bits Pro|
|00003f90| 63 65 64 75 72 65 3a 20 | 42 65 74 74 65 72 20 54 |cedure: |Better T|
|00003fa0| 68 61 6e 20 45 76 65 72 | 20 69 6e 20 53 79 73 74 |han Ever| in Syst|
|00003fb0| 65 6d 20 37 2e 30 2c d3 | 20 66 72 6f 6d 20 69 73 |em 7.0,.| from is|
|00003fc0| 73 75 65 20 36 20 6f 66 | 20 64 65 76 65 6c 6f 70 |sue 6 of| develop|
|00003fd0| 2e 0d 55 6e 66 6f 72 74 | 75 6e 61 74 65 6c 79 2c |..Unfort|unately,|
|00003fe0| 20 47 65 74 47 57 6f 72 | 6c 64 50 69 78 4d 61 70 | GetGWor|ldPixMap|
|00003ff0| 20 64 6f 65 73 20 6e 6f | 74 20 77 6f 72 6b 20 70 | does no|t work p|
|00004000| 72 6f 70 65 72 6c 79 20 | 75 6e 64 65 72 20 33 32 |roperly |under 32|
|00004010| 2d 42 69 74 20 51 75 69 | 63 6b 44 72 61 77 20 31 |-Bit Qui|ckDraw 1|
|00004020| 2e 32 2c 20 73 6f 20 75 | 73 65 20 74 68 65 47 57 |.2, so u|se theGW|
|00004030| 6f 72 6c 64 50 74 72 5e | 2e 70 6f 72 74 50 69 78 |orldPtr^|.portPix|
|00004040| 4d 61 70 20 69 6e 73 74 | 65 61 64 20 69 66 20 61 |Map inst|ead if a|
|00004050| 6e 64 20 6f 6e 6c 79 20 | 69 66 20 47 65 73 74 61 |nd only |if Gesta|
|00004060| 6c 74 20 72 65 70 6f 72 | 74 73 20 74 68 65 20 51 |lt repor|ts the Q|
|00004070| 75 69 63 6b 44 72 61 77 | 20 76 65 72 73 69 6f 6e |uickDraw| version|
|00004080| 20 61 73 20 67 72 65 61 | 74 65 72 20 74 68 61 6e | as grea|ter than|
|00004090| 20 6f 72 20 65 71 75 61 | 6c 20 74 6f 20 67 65 73 | or equa|l to ges|
|000040a0| 74 61 6c 74 33 32 42 69 | 74 51 44 20 61 6e 64 20 |talt32Bi|tQD and |
|000040b0| 6c 65 73 73 20 74 68 61 | 6e 20 67 65 73 74 61 6c |less tha|n gestal|
|000040c0| 74 33 32 42 69 74 51 44 | 31 33 2e 0d 54 68 65 20 |t32BitQD|13..The |
|000040d0| 70 72 6f 70 65 72 20 74 | 65 73 74 20 66 6f 72 20 |proper t|est for |
|000040e0| 74 68 65 20 61 76 61 69 | 6c 61 62 69 6c 69 74 79 |the avai|lability|
|000040f0| 20 47 57 6f 72 6c 64 73 | 20 69 73 0d 72 65 74 43 | GWorlds| is.retC|
|00004100| 6f 64 65 31 20 3d 20 47 | 65 73 74 61 6c 74 28 67 |ode1 = G|estalt(g|
|00004110| 65 73 74 61 6c 74 51 75 | 69 63 6b 64 72 61 77 56 |estaltQu|ickdrawV|
|00004120| 65 72 73 69 6f 6e 2c 20 | 26 71 64 56 65 72 73 52 |ersion, |&qdVersR|
|00004130| 65 73 70 6f 6e 73 65 29 | 3b 0d 72 65 74 43 6f 64 |esponse)|;.retCod|
|00004140| 65 32 20 3d 20 47 65 73 | 74 61 6c 74 28 67 65 73 |e2 = Ges|talt(ges|
|00004150| 74 61 6c 74 53 79 73 74 | 65 6d 56 65 72 73 69 6f |taltSyst|emVersio|
|00004160| 6e 2c 20 26 73 79 73 56 | 65 72 73 52 65 73 70 6f |n, &sysV|ersRespo|
|00004170| 6e 73 65 29 3b 0d 69 66 | 20 28 28 72 65 74 43 6f |nse);.if| ((retCo|
|00004180| 64 65 31 20 3d 3d 20 6e | 6f 45 72 72 29 20 26 26 |de1 == n|oErr) &&|
|00004190| 0d 20 20 20 20 28 72 65 | 74 43 6f 64 65 32 20 3d |. (re|tCode2 =|
|000041a0| 3d 20 6e 6f 45 72 72 29 | 20 26 26 0d 20 20 20 20 |= noErr)| &&. |
|000041b0| 28 28 71 64 56 65 72 73 | 52 65 73 70 6f 6e 73 65 |((qdVers|Response|
|000041c0| 20 3e 3d 20 67 65 73 74 | 61 6c 74 33 32 42 69 74 | >= gest|alt32Bit|
|000041d0| 51 44 29 20 7c 7c 0d 20 | 20 20 20 20 28 73 79 73 |QD) ||. | (sys|
|000041e0| 56 65 72 73 52 65 73 70 | 6f 6e 73 65 20 3e 3d 20 |VersResp|onse >= |
|000041f0| 30 78 30 37 30 30 29 29 | 29 20 7b 0d 20 20 20 20 |0x0700))|) {. |
|00004200| 2f 2a 20 64 6f 20 47 57 | 6f 72 6c 64 20 73 74 75 |/* do GW|orld stu|
|00004210| 66 66 20 2a 2f 0d 7d 0d | 54 68 69 73 20 69 73 20 |ff */.}.|This is |
|00004220| 61 6c 73 6f 20 74 68 65 | 20 61 70 70 72 6f 70 72 |also the| appropr|
|00004230| 69 61 74 65 20 74 65 73 | 74 20 66 6f 72 20 6f 74 |iate tes|t for ot|
|00004240| 68 65 72 20 d2 63 6f 6c | 6f 72 d3 20 72 6f 75 74 |her .col|or. rout|
|00004250| 69 6e 65 73 20 61 76 61 | 69 6c 61 62 6c 65 20 6f |ines ava|ilable o|
|00004260| 6e 20 61 6c 6c 20 4d 61 | 63 69 6e 74 6f 73 68 20 |n all Ma|cintosh |
|00004270| 6d 6f 64 65 6c 73 20 75 | 6e 64 65 72 20 53 79 73 |models u|nder Sys|
|00004280| 74 65 6d 20 37 3a 20 52 | 47 42 46 6f 72 65 43 6f |tem 7: R|GBForeCo|
|00004290| 6c 6f 72 2c 20 52 47 42 | 42 61 63 6b 43 6f 6c 6f |lor, RGB|BackColo|
|000042a0| 72 2c 20 47 65 74 46 6f | 72 65 43 6f 6c 6f 72 2c |r, GetFo|reColor,|
|000042b0| 20 47 65 74 42 61 63 6b | 43 6f 6c 6f 72 2c 20 61 | GetBack|Color, a|
|000042c0| 6e 64 20 51 44 45 72 72 | 6f 72 2e 20 28 51 44 45 |nd QDErr|or. (QDE|
|000042d0| 72 72 6f 72 20 72 65 74 | 75 72 6e 73 20 7a 65 72 |rror ret|urns zer|
|000042e0| 6f 20 69 66 20 43 6f 6c | 6f 72 20 51 75 69 63 6b |o if Col|or Quick|
|000042f0| 44 72 61 77 20 69 73 20 | 6e 6f 74 20 70 72 65 73 |Draw is |not pres|
|00004300| 65 6e 74 2e 29 0d 41 6c | 74 65 72 6e 61 74 69 76 |ent.).Al|ternativ|
|00004310| 65 6c 79 2c 20 69 66 20 | 63 6f 6c 6f 72 20 6f 72 |ely, if |color or|
|00004320| 20 67 72 65 79 73 63 61 | 6c 65 20 47 57 6f 72 6c | greysca|le GWorl|
|00004330| 64 73 20 61 72 65 20 72 | 65 71 75 69 72 65 64 2c |ds are r|equired,|
|00004340| 20 63 68 65 63 6b 20 62 | 69 74 20 67 65 73 74 61 | check b|it gesta|
|00004350| 6c 74 48 61 73 44 65 65 | 70 47 57 6f 72 6c 64 73 |ltHasDee|pGWorlds|
|00004360| 20 28 62 69 74 20 31 29 | 20 6f 66 20 74 68 65 20 | (bit 1)| of the |
|00004370| 72 65 73 70 6f 6e 73 65 | 20 74 6f 20 73 65 6c 65 |response| to sele|
|00004380| 63 74 6f 72 20 67 65 73 | 74 61 6c 74 51 75 69 63 |ctor ges|taltQuic|
|00004390| 6b 64 72 61 77 46 65 61 | 74 75 72 65 73 2e 20 49 |kdrawFea|tures. I|
|000043a0| 74 20 69 73 20 73 65 74 | 20 69 66 20 47 57 6f 72 |t is set| if GWor|
|000043b0| 6c 64 73 20 77 69 74 68 | 20 74 72 75 65 20 43 47 |lds with| true CG|
|000043c0| 72 61 66 50 6f 72 74 73 | 20 61 72 65 20 61 76 61 |rafPorts| are ava|
|000043d0| 69 6c 61 62 6c 65 2e 20 | 49 6e 63 69 64 65 6e 74 |ilable. |Incident|
|000043e0| 61 6c 6c 79 2c 20 74 68 | 65 20 67 65 73 74 61 6c |ally, th|e gestal|
|000043f0| 74 48 61 73 43 6f 6c 6f | 72 20 62 69 74 20 66 6f |tHasColo|r bit fo|
|00004400| 72 20 67 65 73 74 61 6c | 74 51 75 69 63 6b 64 72 |r gestal|tQuickdr|
|00004410| 61 77 46 65 61 74 75 72 | 65 73 20 65 72 72 6f 6e |awFeatur|es erron|
|00004420| 65 6f 75 73 6c 79 20 72 | 65 74 75 72 6e 73 20 74 |eously r|eturns t|
|00004430| 72 75 65 20 66 6f 72 20 | 62 6c 61 63 6b 2d 61 6e |rue for |black-an|
|00004440| 64 2d 77 68 69 74 65 20 | 6d 61 63 68 69 6e 65 73 |d-white |machines|
|00004450| 20 75 6e 64 65 72 20 53 | 79 73 74 65 6d 20 37 2e | under S|ystem 7.|
|00004460| 30 2e 0d 16 36 00 00 00 | 00 02 d7 02 23 00 11 02 |0...6...|....#...|
|00004470| ff 0c 00 ff ff ff ff 00 | 00 00 00 00 00 00 00 02 |........|........|
|00004480| 23 00 00 02 d7 00 00 00 | 00 00 00 00 a0 00 82 00 |#.......|........|
|00004490| 0c 00 1e 00 1f 00 01 00 | 0a 00 2e 00 5a 00 80 02 |........|....Z...|
|000044a0| 23 00 07 00 00 00 00 00 | 08 00 0a 00 09 30 49 88 |#.......|.....0I.|
|000044b0| 3a b5 9c f0 39 00 22 00 | 7a 02 1a 00 00 00 09 ff |:...9.".|z.......|
|000044c0| ff ff ff ff ff ff ff 00 | 23 00 00 00 a0 00 c4 00 |........|#.......|
|000044d0| a1 00 64 00 0a 4f 4e 4c | 4e 00 66 00 00 01 fe 00 |..d..ONL|N.f.....|
|000044e0| a0 00 8c 00 a1 00 64 00 | 31 64 72 77 32 00 02 01 |......d.|1drw2...|
|000044f0| c9 00 2d 01 e1 01 5f 00 | 00 80 00 00 00 00 00 00 |..-..._.|........|
|00004500| 00 00 00 00 00 00 00 00 | 00 00 00 ff ff ff ff ff |........|........|
|00004510| ff 00 01 00 00 01 8f 00 | 00 00 00 00 a1 00 96 00 |........|........|
|00004520| 0c 01 00 00 00 02 78 00 | 00 00 00 00 00 00 a1 00 |......x.|........|
|00004530| 64 00 10 64 72 77 32 00 | 3a 00 05 00 00 00 00 00 |d..drw2.|:.......|
|00004540| 01 00 00 00 a1 00 64 00 | 0e 64 72 77 32 00 3a 00 |......d.|.drw2.:.|
|00004550| 02 00 24 00 00 00 00 00 | a1 00 64 00 34 64 72 77 |..$.....|..d.4drw|
|00004560| 32 00 3a 00 01 00 03 01 | 00 00 18 00 00 00 00 00 |2.:.....|........|
|00004570| 00 00 00 00 00 00 01 00 | 01 00 01 00 01 00 00 00 |........|........|
|00004580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004590| 00 00 a1 00 9a 00 08 ff | fa 00 00 00 97 40 00 00 |........|.....@..|
|000045a0| a0 00 98 00 2c 00 08 00 | 14 05 54 69 6d 65 73 00 |....,...|..Times.|
|000045b0| 03 00 14 00 04 01 00 00 | 0d 00 18 00 2e 00 04 00 |........|........|
|000045c0| 00 01 00 00 10 00 52 01 | c9 00 52 01 c9 00 2b 5d |......R.|..R...+]|
|000045d0| 41 13 4e 65 77 20 54 65 | 63 68 6e 69 63 61 6c 20 |A.New Te|chnical |
|000045e0| 4e 6f 74 65 73 00 a0 00 | 99 00 a1 00 64 00 08 64 |Notes...|....d..d|
|000045f0| 72 77 32 00 3a 00 04 00 | a1 14 e3 00 02 00 01 00 |rw2.:...|........|
|00004600| a0 00 97 00 a1 00 64 00 | 31 64 72 77 32 00 02 02 |......d.|1drw2...|
|00004610| 06 01 65 02 19 01 f4 00 | 00 80 00 00 00 00 00 00 |..e.....|........|
|00004620| 00 00 00 00 00 00 00 00 | 00 00 00 ff ff ff ff ff |........|........|
|00004630| ff 00 01 00 00 01 50 00 | 00 00 00 00 a1 00 96 00 |......P.|........|
|00004640| 0c 01 00 00 00 02 78 00 | 00 00 00 00 00 00 a1 00 |......x.|........|
|00004650| 64 00 10 64 72 77 32 00 | 3a 00 05 00 00 00 00 00 |d..drw2.|:.......|
|00004660| 01 00 00 00 a1 00 64 00 | 0e 64 72 77 32 00 3a 00 |......d.|.drw2.:.|
|00004670| 02 00 24 00 00 00 00 00 | a1 00 64 00 34 64 72 77 |..$.....|..d.4drw|
|00004680| 32 00 3a 00 01 00 03 00 | 00 00 12 00 00 00 00 00 |2.:.....|........|
|00004690| 00 00 00 00 00 00 01 00 | 01 00 01 00 01 00 00 00 |........|........|
|000046a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046b0| 00 00 a1 00 9a 00 08 ff | fb 80 00 00 45 c0 00 00 |........|....E...|
|000046c0| a0 00 98 00 04 00 00 00 | 0d 00 12 00 28 00 7a 01 |........|....(.z.|
|000046d0| 95 11 44 65 76 65 6c 6f | 70 65 72 20 53 75 70 70 |..Develo|per Supp|
|000046e0| 6f 72 74 00 a0 00 99 00 | a1 00 64 00 08 64 72 77 |ort.....|..d..drw|
|000046f0| 32 00 3a 00 04 00 a1 14 | e3 00 02 00 01 00 a0 00 |2.:.....|........|
|00004700| 97 00 a1 00 64 00 60 64 | 72 77 32 00 03 02 00 00 |....d.`d|rw2.....|
|00004710| 2d 02 00 01 ef 00 00 00 | 00 00 00 00 00 02 02 00 |-.......|........|
|00004720| 00 00 00 00 00 00 00 00 | 00 ff ff ff ff ff ff 00 |........|........|
|00004730| 01 00 01 08 4b 00 00 00 | 00 02 00 01 ef 02 00 00 |....K...|........|
|00004740| 2d 00 00 00 00 00 00 00 | 00 00 01 00 14 00 0c 00 |-.......|........|
|00004750| 03 00 02 00 00 00 5a 00 | 01 00 00 00 02 00 00 00 |......Z.|........|
|00004760| 03 00 0c 00 00 00 00 00 | 07 00 02 00 02 00 08 00 |........|........|
|00004770| 08 00 20 00 65 02 1c 00 | 65 00 5a 00 a1 00 64 00 |.. .e...|e.Z...d.|
|00004780| 31 64 72 77 32 00 02 01 | ca 01 c0 01 fa 01 e9 00 |1drw2...|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 ff ff ff ff ff | ff 00 01 00 00 01 4b 00 |........|......K.|
|000047b0| 00 00 00 00 a1 00 96 00 | 0c 01 00 00 00 02 78 00 |........|......x.|
|000047c0| 00 00 00 00 00 00 a1 00 | 64 00 10 64 72 77 32 00 |........|d..drw2.|
|000047d0| 3a 00 05 00 00 00 00 00 | 01 00 00 00 a1 00 64 00 |:.......|......d.|
|000047e0| 0e 64 72 77 32 00 3a 00 | 02 00 24 00 00 00 00 00 |.drw2.:.|..$.....|
|000047f0| a1 00 64 00 34 64 72 77 | 32 00 3a 00 01 00 03 00 |..d.4drw|2.:.....|
|00004800| 00 00 30 00 00 00 00 00 | 00 00 00 00 00 00 01 00 |..0.....|........|
|00004810| 01 00 01 00 01 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 a1 00 9a 00 08 ff |........|........|
|00004830| f4 00 00 00 13 80 00 00 | a0 00 98 00 0d 00 30 00 |........|......0.|
|00004840| 28 00 54 01 ef 01 f0 00 | a0 00 99 00 a1 00 64 00 |(.T.....|......d.|
|00004850| 08 64 72 77 32 00 3a 00 | 04 00 a1 14 e3 00 02 00 |.drw2.:.|........|
|00004860| 01 00 a0 00 97 00 a1 00 | 64 00 31 64 72 77 32 00 |........|d.1drw2.|
|00004870| 02 01 ef 01 e6 01 fa 01 | f0 00 00 00 00 00 00 00 |........|........|
|00004880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 ff ff ff |........|........|
|00004890| ff ff ff 00 01 00 00 01 | 00 00 00 00 00 00 a1 00 |........|........|
|000048a0| 96 00 0c 01 00 00 00 02 | 78 00 00 00 00 00 00 00 |........|x.......|
|000048b0| a1 00 64 00 10 64 72 77 | 32 00 3a 00 05 00 00 00 |..d..drw|2.:.....|
|000048c0| 00 00 01 00 00 00 a1 00 | 64 00 0e 64 72 77 32 00 |........|d..drw2.|
|000048d0| 3a 00 02 00 24 00 00 00 | 00 00 a1 00 64 00 34 64 |:...$...|....d.4d|
|000048e0| 72 77 32 00 3a 00 01 00 | 03 00 00 00 09 00 00 00 |rw2.:...|........|
|000048f0| 00 00 00 00 00 00 00 00 | 01 00 01 00 01 00 01 00 |........|........|
|00004900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 00 00 00 00 a1 00 9a 00 | 08 ff fd 80 00 00 04 00 |........|........|
|00004920| 00 00 a0 00 98 00 0d 00 | 09 00 2b 26 09 01 a8 00 |........|..+&....|
|00004930| a0 00 99 00 a1 00 64 00 | 08 64 72 77 32 00 3a 00 |......d.|.drw2.:.|
|00004940| 04 00 a1 14 e3 00 02 00 | 01 00 a0 00 97 00 a1 00 |........|........|
|00004950| 64 00 31 64 72 77 32 00 | 02 01 e5 00 2d 01 f8 00 |d.1drw2.|....-...|
|00004960| 79 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |y.......|........|
|00004970| 00 00 00 00 00 ff ff ff | ff ff ff 00 01 00 01 01 |........|........|
|00004980| 00 00 00 01 00 00 a1 00 | 96 00 0c 01 00 00 00 02 |........|........|
|00004990| 78 00 00 00 00 00 00 00 | a1 00 64 00 10 64 72 77 |x.......|..d..drw|
|000049a0| 32 00 3a 00 05 00 00 00 | 00 00 01 00 00 00 a1 00 |2.:.....|........|
|000049b0| 64 00 0e 64 72 77 32 00 | 3a 00 02 00 24 00 00 00 |d..drw2.|:...$...|
|000049c0| 00 00 a1 00 64 00 34 64 | 72 77 32 00 3a 00 01 00 |....d.4d|rw2.:...|
|000049d0| 03 00 00 00 12 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 01 00 01 00 01 00 01 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 a1 00 9a 00 |........|........|
|00004a00| 08 ff fb 80 00 00 25 00 | 00 00 a0 00 98 00 0d 00 |......%.|........|
|00004a10| 12 00 28 00 59 00 5c 09 | 4d 61 63 69 6e 74 6f 73 |..(.Y.\.|Macintos|
|00004a20| 68 00 a0 00 99 00 a1 00 | 64 00 08 64 72 77 32 00 |h.......|d..drw2.|
|00004a30| 3a 00 04 00 a1 14 e3 00 | 02 00 01 00 a0 00 97 00 |:.......|........|
|00004a40| a0 00 8d 00 a1 00 64 00 | 06 64 72 77 32 00 44 00 |......d.|.drw2.D.|
|00004a50| a0 00 83 00 01 00 0a 00 | 00 00 00 03 49 02 52 00 |........|....I.R.|
|00004a60| 04 01 00 00 2e 00 04 00 | 00 00 00 00 10 00 01 00 |........|........|
|00004a70| 01 00 01 00 01 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00004a80| 64 00 00 00 6d 00 3c 00 | 7f 01 44 00 28 00 9a 00 |d...m.<.|..D.(...|
|00004a90| 5a 1d 47 72 61 70 68 69 | 63 73 20 44 65 76 69 63 |Z.Graphi|cs Devic|
|00004aa0| 65 73 20 4d 61 6e 61 67 | 65 72 20 51 26 41 73 00 |es Manag|er Q&As.|
|00004ab0| 0d 00 0e 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00004ac0| 1e 00 7f 00 3c 00 8d 00 | 68 00 2a 0f 07 44 65 76 |....<...|h.*..Dev|
|00004ad0| 69 63 65 73 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |ices....|d..ONLN.|
|00004ae0| 64 00 26 00 7f 00 72 00 | 8d 00 f1 00 29 36 0f 4d |d.&...r.|....)6.M|
|00004af0| 2e 44 56 2e 47 44 4d 67 | 72 2e 51 26 41 73 00 00 |.DV.GDMg|r.Q&As..|
|00004b00| 04 00 00 00 0d 00 0c 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00004b10| 4e 00 64 00 36 00 99 00 | 3c 00 a5 00 73 00 28 00 |N.d.6...|<...s.(.|
|00004b20| c1 00 5a 0b 52 65 76 69 | 73 65 64 20 62 79 3a 00 |..Z.Revi|sed by:.|
|00004b30| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 42 00 99 00 |..d..ONL|N.d.B...|
|00004b40| 84 00 a5 01 2c 00 29 48 | 21 41 70 70 6c 65 20 44 |....,.)H|!Apple D|
|00004b50| 65 76 65 6c 6f 70 65 72 | 20 54 65 63 68 6e 69 63 |eveloper| Technic|
|00004b60| 61 6c 20 53 75 70 70 6f | 72 74 00 00 a1 00 64 00 |al Suppo|rt....d.|
|00004b70| 10 4f 4e 4c 4e 00 64 00 | 64 00 99 01 c1 00 a5 01 |.ONLN.d.|d.......|
|00004b80| fe 00 28 00 c1 01 df 0b | 41 75 67 75 73 74 20 31 |..(.....|August 1|
|00004b90| 39 39 32 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |992...d.|.ONLN.d.|
|00004ba0| 70 00 a5 00 3c 00 b1 00 | 72 00 28 00 cd 00 5a 0b |p...<...|r.(...Z.|
|00004bb0| 57 72 69 74 74 65 6e 20 | 62 79 3a 00 a1 00 64 00 |Written |by:...d.|
|00004bc0| 10 4f 4e 4c 4e 00 64 00 | 7c 00 a5 00 84 00 b1 01 |.ONLN.d.||.......|
|00004bd0| 2c 00 29 48 21 41 70 70 | 6c 65 20 44 65 76 65 6c |,.)H!App|le Devel|
|00004be0| 6f 70 65 72 20 54 65 63 | 68 6e 69 63 61 6c 20 53 |oper Tec|hnical S|
|00004bf0| 75 70 70 6f 72 74 00 00 | a1 00 64 00 10 4f 4e 4c |upport..|..d..ONL|
|00004c00| 4e 00 64 00 9e 00 a5 01 | bd 00 b1 01 fe 00 28 00 |N.d.....|......(.|
|00004c10| cd 01 db 0c 4f 63 74 6f | 62 65 72 20 31 39 39 30 |....Octo|ber 1990|
|00004c20| 00 00 06 00 02 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00004c30| 4e 00 64 00 ab 00 bd 00 | 3c 00 c9 01 1b 00 28 00 |N.d.....|<.....(.|
|00004c40| e5 00 5a 2d 54 68 69 73 | 20 54 65 63 68 6e 69 63 |..Z-This| Technic|
|00004c50| 61 6c 20 4e 6f 74 65 20 | 63 6f 6e 74 61 69 6e 73 |al Note |contains|
|00004c60| 20 61 20 63 6f 6c 6c 65 | 63 74 69 6f 6e 20 6f 66 | a colle|ction of|
|00004c70| 20 00 06 00 03 00 00 00 | a1 00 64 00 10 4f 4e 4c | .......|..d..ONL|
|00004c80| 4e 00 64 00 d8 00 bd 01 | 1b 00 c9 01 fe 00 29 df |N.d.....|......).|
|00004c90| 2b 51 26 41 73 20 72 65 | 6c 61 74 69 6e 67 20 74 |+Q&As re|lating t|
|00004ca0| 6f 20 61 20 73 70 65 63 | 69 66 69 63 20 74 6f 70 |o a spec|ific top|
|00004cb0| 69 63 d1 71 75 65 73 74 | 69 6f 6e 73 00 00 06 00 |ic.quest|ions....|
|00004cc0| 00 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |......d.|.ONLN.d.|
|00004cd0| 04 00 c9 00 3c 00 d5 01 | 36 00 28 00 f1 00 5a 33 |....<...|6.(...Z3|
|00004ce0| 79 6f 75 d5 76 65 20 73 | 65 6e 74 20 44 65 76 65 |you.ve s|ent Deve|
|00004cf0| 6c 6f 70 65 72 20 54 65 | 63 68 6e 69 63 61 6c 20 |loper Te|chnical |
|00004d00| 53 75 70 70 6f 72 74 20 | 61 6c 6f 6e 67 20 77 69 |Support |along wi|
|00004d10| 74 68 20 00 06 00 01 00 | 00 00 a1 00 64 00 10 4f |th .....|....d..O|
|00004d20| 4e 4c 4e 00 64 01 37 00 | c9 01 36 00 d5 01 fe 00 |NLN.d.7.|..6.....|
|00004d30| 29 fa 24 44 54 53 d5 73 | 20 61 6e 73 77 65 72 73 |).$DTS.s| answers|
|00004d40| 2e 20 57 68 69 6c 65 20 | 44 54 53 20 68 61 73 20 |. While |DTS has |
|00004d50| 63 68 65 63 6b 65 64 00 | 06 00 00 00 00 00 a1 00 |checked.|........|
|00004d60| 64 00 10 4f 4e 4c 4e 00 | 64 01 5c 00 d5 00 3c 00 |d..ONLN.|d.\...<.|
|00004d70| e1 01 b6 00 28 00 fd 00 | 5a 4e 74 68 65 20 63 6f |....(...|ZNthe co|
|00004d80| 6e 74 65 6e 74 20 66 6f | 72 20 61 63 63 75 72 61 |ntent fo|r accura|
|00004d90| 63 79 2a 2c 20 51 26 41 | 20 54 65 63 68 20 4e 6f |cy*, Q&A| Tech No|
|00004da0| 74 65 20 63 6f 6e 74 65 | 6e 74 20 64 6f 65 73 6e |te conte|nt doesn|
|00004db0| d5 74 20 68 61 76 65 20 | 74 68 65 20 65 64 69 74 |.t have |the edit|
|00004dc0| 69 6e 67 20 61 6e 64 20 | 00 00 06 00 01 00 00 00 |ing and |........|
|00004dd0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 01 aa 00 d5 01 |..d..ONL|N.d.....|
|00004de0| b6 00 e1 01 fe 00 28 00 | fd 01 d4 0f 6f 72 67 61 |......(.|....orga|
|00004df0| 6e 69 7a 61 74 69 6f 6e | 20 6f 66 00 06 00 00 00 |nization| of.....|
|00004e00| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 01 ba 00 |....d..O|NLN.d...|
|00004e10| e1 00 3c 00 ed 01 5a 00 | 28 01 09 00 5a 3b 6f 74 |..<...Z.|(...Z;ot|
|00004e20| 68 65 72 20 54 65 63 68 | 20 4e 6f 74 65 73 2e 20 |her Tech| Notes. |
|00004e30| 54 68 65 20 51 26 41 20 | 66 75 6e 63 74 69 6f 6e |The Q&A |function|
|00004e40| 20 69 73 20 74 6f 20 67 | 65 74 20 6e 65 77 20 74 | is to g|et new t|
|00004e50| 65 63 68 6e 69 63 61 6c | 20 00 06 00 01 00 00 00 |echnical| .......|
|00004e60| a1 00 64 00 10 4f 4e 4c | 4e 00 64 01 f5 00 e1 01 |..d..ONL|N.d.....|
|00004e70| 5a 00 ed 01 fe 00 28 01 | 09 01 78 22 75 70 64 61 |Z.....(.|..x"upda|
|00004e80| 74 65 73 20 74 6f 20 79 | 6f 75 20 71 75 69 63 6b |tes to y|ou quick|
|00004e90| 6c 79 2c 20 73 61 76 69 | 6e 67 20 74 68 65 00 00 |ly, savi|ng the..|
|00004ea0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 18 00 ed 00 |..d..ONL|N.d.....|
|00004eb0| 3c 00 f9 01 82 00 28 01 | 15 00 5a 40 70 6f 6c 69 |<.....(.|..Z@poli|
|00004ec0| 73 68 20 66 6f 72 20 77 | 68 65 6e 20 51 26 41 20 |sh for w|hen Q&A |
|00004ed0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 6d 69 67 72 |informat|ion migr|
|00004ee0| 61 74 65 73 20 69 6e 74 | 6f 20 72 65 66 65 72 65 |ates int|o refere|
|00004ef0| 6e 63 65 20 6d 61 6e 75 | 61 6c 73 20 00 00 06 00 |nce manu|als ....|
|00004f00| 02 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |......d.|.ONLN.d.|
|00004f10| 58 00 ed 01 82 00 f9 01 | fe 00 28 01 15 01 a0 15 |X.......|..(.....|
|00004f20| 6f 72 20 6e 6f 6e 51 26 | 41 20 54 65 63 68 20 4e |or nonQ&|A Tech N|
|00004f30| 6f 74 65 73 2e 00 06 00 | 00 00 00 00 a1 00 64 00 |otes....|......d.|
|00004f40| 10 4f 4e 4c 4e 00 64 02 | 6e 00 f9 00 3c 01 05 01 |.ONLN.d.|n...<...|
|00004f50| 24 00 28 01 21 00 5a 2e | 51 26 41 73 20 61 72 65 |$.(.!.Z.|Q&As are|
|00004f60| 20 6e 6f 77 20 69 6e 63 | 6c 75 64 65 64 20 77 69 | now inc|luded wi|
|00004f70| 74 68 20 54 65 63 68 20 | 4e 6f 74 65 73 20 74 6f |th Tech |Notes to|
|00004f80| 20 67 69 76 65 20 00 00 | 06 00 01 00 00 00 a1 00 | give ..|........|
|00004f90| 64 00 10 4f 4e 4c 4e 00 | 64 02 9c 00 f9 01 24 01 |d..ONLN.|d.....$.|
|00004fa0| 05 01 fe 00 29 e8 2e 79 | 6f 75 20 65 61 73 69 65 |....)..y|ou easie|
|00004fb0| 72 20 61 63 63 65 73 73 | 20 74 6f 20 74 65 63 68 |r access| to tech|
|00004fc0| 6e 69 63 61 6c 20 75 70 | 64 61 74 65 73 2e 20 49 |nical up|dates. I|
|00004fd0| 66 20 79 6f 75 00 06 00 | 03 00 00 00 a1 00 64 00 |f you...|......d.|
|00004fe0| 10 4f 4e 4c 4e 00 64 02 | cb 01 05 00 3c 01 11 01 |.ONLN.d.|....<...|
|00004ff0| 89 00 28 01 2d 00 5a 3f | 68 61 76 65 20 63 6f 6d |..(.-.Z?|have com|
|00005000| 6d 65 6e 74 73 20 61 62 | 6f 75 74 20 51 26 41 20 |ments ab|out Q&A |
|00005010| 63 6f 6e 74 65 6e 74 20 | 6f 72 20 64 69 73 74 72 |content |or distr|
|00005020| 69 62 75 74 69 6f 6e 2c | 20 70 6c 65 61 73 65 20 |ibution,| please |
|00005030| 6c 65 74 20 75 73 20 00 | 06 00 04 00 00 00 a1 00 |let us .|........|
|00005040| 64 00 10 4f 4e 4c 4e 00 | 64 03 0a 01 05 01 89 01 |d..ONLN.|d.......|
|00005050| 11 01 fe 00 28 01 2d 01 | a7 14 6b 6e 6f 77 20 62 |....(.-.|..know b|
|00005060| 79 20 41 70 70 6c 65 4c | 69 6e 6b 69 6e 67 00 00 |y AppleL|inking..|
|00005070| 06 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005080| 64 03 1f 01 11 00 3c 01 | 1d 01 8d 00 28 01 39 00 |d.....<.|....(.9.|
|00005090| 5a 3e 44 45 56 46 45 45 | 44 42 41 43 4b 20 6f 72 |Z>DEVFEE|DBACK or|
|000050a0| 20 73 65 6e 64 69 6e 67 | 20 61 20 6e 6f 74 65 20 | sending| a note |
|000050b0| 74 6f 20 44 65 76 65 6c | 6f 70 65 72 20 53 75 70 |to Devel|oper Sup|
|000050c0| 70 6f 72 74 2c 20 4d 2f | 53 20 37 35 2d 32 42 2e |port, M/|S 75-2B.|
|000050d0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 5e 01 |....d..O|NLN.d.^.|
|000050e0| 29 00 3c 01 35 01 7d 00 | 2a 18 41 4e 65 77 20 51 |).<.5.}.|*.ANew Q|
|000050f0| 26 41 73 20 66 6f 72 20 | 74 68 69 73 20 6d 6f 6e |&As for |this mon|
|00005100| 74 68 20 61 72 65 20 6d | 61 72 6b 65 64 20 77 69 |th are m|arked wi|
|00005110| 74 68 20 61 20 62 61 72 | 20 69 6e 20 74 68 65 20 |th a bar| in the |
|00005120| 73 69 64 65 20 6d 61 72 | 67 69 6e 2e 00 00 07 00 |side mar|gin.....|
|00005130| 01 00 01 00 22 01 48 00 | 57 00 0b 00 06 00 01 00 |....".H.|W.......|
|00005140| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 a0 01 |....d..O|NLN.d...|
|00005150| 41 00 3c 01 4d 01 38 00 | 2a 18 31 2a 44 54 53 20 |A.<.M.8.|*.1*DTS |
|00005160| 69 73 20 72 65 76 69 65 | 77 69 6e 67 20 61 6c 6c |is revie|wing all|
|00005170| 20 74 68 65 20 51 26 41 | 73 20 69 6e 20 74 68 69 | the Q&A|s in thi|
|00005180| 73 20 54 65 63 68 20 4e | 6f 74 65 20 00 00 06 00 |s Tech N|ote ....|
|00005190| 02 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|000051a0| d1 01 41 01 38 01 4d 01 | fe 00 29 fc 2a 74 6f 20 |..A.8.M.|..).*to |
|000051b0| 6d 61 6b 65 20 73 75 72 | 65 20 74 68 65 20 63 6f |make sur|e the co|
|000051c0| 6e 74 65 6e 74 20 69 73 | 20 73 74 69 6c 6c 20 63 |ntent is| still c|
|000051d0| 75 72 72 65 6e 74 2e 00 | 06 00 00 00 00 00 a1 00 |urrent..|........|
|000051e0| 64 00 10 4f 4e 4c 4e 00 | 64 03 fc 01 4d 00 3c 01 |d..ONLN.|d...M.<.|
|000051f0| 59 01 63 00 28 01 75 00 | 5a 3d 55 70 64 61 74 65 |Y.c.(.u.|Z=Update|
|00005200| 73 20 77 69 6c 6c 20 62 | 65 20 69 6e 63 6c 75 64 |s will b|e includ|
|00005210| 65 64 20 77 69 74 68 20 | 6e 65 78 74 20 6d 6f 6e |ed with |next mon|
|00005220| 74 68 d5 73 20 54 65 63 | 68 20 4e 6f 74 65 20 72 |th.s Tec|h Note r|
|00005230| 65 6c 65 61 73 65 2e 00 | a1 00 64 00 10 4f 4e 4c |elease..|..d..ONL|
|00005240| 4e 00 64 04 3a 01 65 00 | 3c 01 71 01 7d 00 2a 18 |N.d.:.e.|<.q.}.*.|
|00005250| 41 4e 65 77 20 51 26 41 | 73 20 66 6f 72 20 74 68 |ANew Q&A|s for th|
|00005260| 69 73 20 6d 6f 6e 74 68 | 20 61 72 65 20 6d 61 72 |is month| are mar|
|00005270| 6b 65 64 20 77 69 74 68 | 20 61 20 62 61 72 20 69 |ked with| a bar i|
|00005280| 6e 20 74 68 65 20 73 69 | 64 65 20 6d 61 72 67 69 |n the si|de margi|
|00005290| 6e 2e 00 00 20 01 9c 00 | 58 01 9c 02 1d 00 04 01 |n... ...|X.......|
|000052a0| 00 00 0d 00 0e 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000052b0| 64 04 7c 01 96 00 3c 01 | a4 01 21 00 2a 33 21 4d |d.|...<.|..!.*3!M|
|000052c0| 61 63 69 6e 74 6f 73 68 | 20 73 6c 6f 74 20 6e 75 |acintosh| slot nu|
|000052d0| 6d 62 65 72 20 61 6e 64 | 20 67 52 65 66 4e 75 6d |mber and| gRefNum|
|000052e0| 00 00 04 00 00 00 0d 00 | 0c 00 a1 00 64 00 10 4f |........|....d..O|
|000052f0| 4e 4c 4e 00 64 04 9e 01 | b0 00 3c 01 bc 00 a1 00 |NLN.d...|..<.....|
|00005300| 2a 18 14 48 6f 77 20 63 | 61 6e 20 49 20 64 65 74 |*..How c|an I det|
|00005310| 65 72 6d 69 6e 65 20 00 | 06 00 01 00 00 00 a1 00 |ermine .|........|
|00005320| 64 00 10 4f 4e 4c 4e 00 | 64 04 b2 01 b0 00 a1 01 |d..ONLN.|d.......|
|00005330| bc 01 fe 00 29 65 47 77 | 68 61 74 20 68 61 72 64 |....)eGw|hat hard|
|00005340| 77 61 72 65 20 64 65 76 | 69 63 65 20 69 73 20 64 |ware dev|ice is d|
|00005350| 72 69 76 65 6e 20 62 79 | 20 61 20 70 61 72 74 69 |riven by| a parti|
|00005360| 63 75 6c 61 72 20 4d 61 | 63 69 6e 74 6f 73 68 20 |cular Ma|cintosh |
|00005370| 67 44 65 76 69 63 65 3f | 20 49 20 63 61 6e 00 00 |gDevice?| I can..|
|00005380| 06 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005390| 64 04 fa 01 bc 00 3c 01 | c8 01 ef 00 28 01 e4 00 |d.....<.|....(...|
|000053a0| 5a 5a 63 61 6c 6c 20 5f | 47 65 74 44 65 76 69 63 |ZZcall _|GetDevic|
|000053b0| 65 4c 69 73 74 20 61 6e | 64 20 5f 47 65 74 4e 65 |eList an|d _GetNe|
|000053c0| 78 74 44 65 76 69 63 65 | 20 74 6f 20 67 65 74 20 |xtDevice| to get |
|000053d0| 74 68 65 20 64 72 69 76 | 65 72 20 72 65 66 65 72 |the driv|er refer|
|000053e0| 65 6e 63 65 20 6e 75 6d | 62 65 72 20 6f 66 20 65 |ence num|ber of e|
|000053f0| 61 63 68 20 67 44 65 76 | 69 63 65 20 00 00 06 00 |ach gDev|ice ....|
|00005400| 01 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 05 |......d.|.ONLN.d.|
|00005410| 54 01 bc 01 ef 01 c8 01 | fe 00 28 01 e4 02 0d 03 |T.......|..(.....|
|00005420| 62 75 74 00 06 00 00 00 | 00 00 a1 00 64 00 10 4f |but.....|....d..O|
|00005430| 4e 4c 4e 00 64 05 58 01 | c8 00 3c 01 d4 01 8c 00 |NLN.d.X.|..<.....|
|00005440| 28 01 f0 00 5a 47 6e 6f | 74 20 74 68 65 20 68 61 |(...ZGno|t the ha|
|00005450| 72 64 77 61 72 65 20 49 | 44 2e 20 54 68 65 20 73 |rdware I|D. The s|
|00005460| 79 73 74 65 6d 20 27 73 | 63 72 6e 27 20 72 65 73 |ystem 's|crn' res|
|00005470| 6f 75 72 63 65 20 66 6f | 72 20 74 68 65 20 68 61 |ource fo|r the ha|
|00005480| 72 64 77 61 72 65 20 49 | 44 20 6f 66 20 00 06 00 |rdware I|D of ...|
|00005490| 01 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 05 |......d.|.ONLN.d.|
|000054a0| 9f 01 c8 01 8c 01 d4 01 | fe 00 28 01 f0 01 aa 18 |........|..(.....|
|000054b0| 65 61 63 68 20 64 65 76 | 69 63 65 20 64 6f 65 73 |each dev|ice does|
|000054c0| 6e 27 74 20 67 69 76 65 | 00 00 a1 00 64 00 10 4f |n't give|....d..O|
|000054d0| 4e 4c 4e 00 64 05 b8 01 | d4 00 3c 01 e0 00 d9 00 |NLN.d...|..<.....|
|000054e0| 28 01 fc 00 5a 20 6d 65 | 20 74 68 65 20 64 72 69 |(...Z me| the dri|
|000054f0| 76 65 72 20 72 65 66 65 | 72 65 6e 63 65 20 6e 75 |ver refe|rence nu|
|00005500| 6d 62 65 72 2e 20 00 00 | 06 00 02 00 00 00 a1 00 |mber. ..|........|
|00005510| 64 00 10 4f 4e 4c 4e 00 | 64 05 d8 01 d4 00 d9 01 |d..ONLN.|d.......|
|00005520| e0 01 fe 00 29 9d 3b 50 | 61 72 73 69 6e 67 20 74 |....).;P|arsing t|
|00005530| 68 65 20 73 79 73 74 65 | 6d 20 27 73 63 72 6e 27 |he syste|m 'scrn'|
|00005540| 20 72 65 73 6f 75 72 63 | 65 2c 20 74 68 65 6e 20 | resourc|e, then |
|00005550| 63 6f 75 6e 74 69 6e 67 | 20 74 68 61 74 20 6d 61 |counting| that ma|
|00005560| 6e 79 00 00 06 00 03 00 | 00 00 a1 00 64 00 10 4f |ny......|....d..O|
|00005570| 4e 4c 4e 00 64 06 14 01 | e0 00 3c 01 ec 01 6f 00 |NLN.d...|..<...o.|
|00005580| 28 02 08 00 5a 39 77 69 | 74 68 20 5f 47 65 74 44 |(...Z9wi|th _GetD|
|00005590| 65 76 69 63 65 4c 69 73 | 74 20 61 6e 64 20 5f 47 |eviceLis|t and _G|
|000055a0| 65 74 4e 65 78 74 44 65 | 76 69 63 65 20 70 72 6f |etNextDe|vice pro|
|000055b0| 64 75 63 65 73 20 61 20 | 64 65 76 69 63 65 20 00 |duces a |device .|
|000055c0| 06 00 04 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000055d0| 64 06 4d 01 e0 01 6f 01 | ec 01 fe 00 28 02 08 01 |d.M...o.|....(...|
|000055e0| 8d 1c 6c 69 73 74 20 74 | 68 61 74 20 64 6f 65 73 |..list t|hat does|
|000055f0| 6e 27 74 20 73 65 65 6d | 20 74 6f 20 62 65 00 00 |n't seem| to be..|
|00005600| 06 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005610| 64 06 6a 01 ec 00 3c 01 | f8 01 2f 00 28 02 14 00 |d.j...<.|../.(...|
|00005620| 5a 36 63 6f 6e 73 69 73 | 74 65 6e 74 6c 79 20 69 |Z6consis|tently i|
|00005630| 6e 20 74 68 65 20 73 61 | 6d 65 20 6f 72 64 65 72 |n the sa|me order|
|00005640| 20 61 73 20 74 68 65 20 | 27 73 63 72 6e 27 20 72 | as the |'scrn' r|
|00005650| 65 73 6f 75 72 63 65 2e | 00 00 a1 00 64 00 10 4f |esource.|....d..O|
|00005660| 4e 4c 4e 00 64 06 a1 01 | f8 00 3c 02 04 00 4e 00 |NLN.d...|..<...N.|
|00005670| 2a 0c 03 5f 5f 5f 00 00 | 06 00 02 00 00 00 a1 00 |*..___..|........|
|00005680| 64 00 10 4f 4e 4c 4e 00 | 64 06 a5 02 10 00 3c 02 |d..ONLN.|d.....<.|
|00005690| 1c 00 e1 00 2a 18 20 4d | 79 20 69 6d 70 72 65 73 |....*. M|y impres|
|000056a0| 73 69 6f 6e 20 69 73 20 | 74 68 61 74 20 79 6f 75 |sion is |that you|
|000056b0| 20 64 6f 6e 27 74 20 00 | 06 00 03 00 00 00 a1 00 | don't .|........|
|000056c0| 64 00 10 4f 4e 4c 4e 00 | 64 06 c5 02 10 00 e1 02 |d..ONLN.|d.......|
|000056d0| 1c 01 fe 00 29 a5 34 6d | 61 6b 65 20 74 68 65 20 |....).4m|ake the |
|000056e0| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 62 65 74 77 65 |connecti|on betwe|
|000056f0| 65 6e 20 74 68 65 20 67 | 52 65 66 4e 75 6d 20 61 |en the g|RefNum a|
|00005700| 6e 64 20 74 68 65 20 73 | 6c 6f 74 00 06 00 00 00 |nd the s|lot.....|
|00005710| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 06 fa 02 |....d..O|NLN.d...|
|00005720| 1c 00 3c 02 28 01 20 00 | 28 02 44 00 5a 2e 6e 75 |..<.(. .|(.D.Z.nu|
|00005730| 6d 62 65 72 2e 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |mber. Th|e follow|
|00005740| 69 6e 67 20 63 6f 64 65 | 20 73 68 6f 77 73 20 68 |ing code| shows h|
|00005750| 6f 77 20 74 6f 20 64 6f | 20 69 74 3a 00 00 2c 00 |ow to do| it:..,.|
|00005760| 0a 00 16 07 43 6f 75 72 | 69 65 72 00 03 00 16 00 |....Cour|ier.....|
|00005770| 0d 00 09 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 07 |......d.|.ONLN.d.|
|00005780| 29 02 34 00 3c 02 3f 01 | c2 00 2a 17 4e 20 20 20 |).4.<.?.|..*.N |
|00005790| 20 44 43 45 48 61 6e 64 | 20 3d 20 28 41 75 78 44 | DCEHand| = (AuxD|
|000057a0| 43 45 48 61 6e 64 6c 65 | 29 20 26 28 2a 55 54 61 |CEHandle|) &(*UTa|
|000057b0| 62 6c 65 42 61 73 65 5b | 2d 44 65 76 49 6e 66 6f |bleBase[|-DevInfo|
|000057c0| 4c 69 73 74 5b 69 6e 64 | 65 78 5d 2e 67 64 52 65 |List[ind|ex].gdRe|
|000057d0| 66 4e 75 6d 20 2d 20 31 | 5d 29 3b 00 a1 00 64 00 |fNum - 1|]);...d.|
|000057e0| 10 4f 4e 4c 4e 00 64 07 | 78 02 48 00 3c 02 53 01 |.ONLN.d.|x.H.<.S.|
|000057f0| 6d 00 2a 14 3d 20 20 20 | 20 2f 2a 20 4e 6f 74 65 |m.*.= | /* Note|
|00005800| 20 74 68 61 74 20 74 68 | 65 20 70 72 65 76 69 6f | that th|e previo|
|00005810| 75 73 20 63 6f 75 6c 64 | 20 68 61 76 65 20 62 65 |us could| have be|
|00005820| 65 6e 20 61 63 63 6f 6d | 70 6c 69 73 68 65 64 20 |en accom|plished |
|00005830| 62 79 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 07 |by....d.|.ONLN.d.|
|00005840| b6 02 52 00 3c 02 5d 01 | 9f 00 2a 0a 47 20 20 20 |..R.<.].|..*.G |
|00005850| 20 44 43 45 48 61 6e 64 | 20 3d 20 28 41 75 78 44 | DCEHand| = (AuxD|
|00005860| 43 45 48 61 6e 64 6c 65 | 29 20 47 65 74 44 43 74 |CEHandle|) GetDCt|
|00005870| 6c 45 6e 74 72 79 28 44 | 65 76 49 6e 66 6f 4c 69 |lEntry(D|evInfoLi|
|00005880| 73 74 5b 69 6e 64 65 78 | 5d 2e 67 64 52 65 66 4e |st[index|].gdRefN|
|00005890| 75 6d 29 3b 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |um);....|d..ONLN.|
|000058a0| 64 07 fe 02 5c 00 3c 02 | 67 01 77 00 2a 0a 3f 20 |d...\.<.|g.w.*.? |
|000058b0| 20 20 20 42 75 74 20 77 | 68 61 74 20 67 6f 6f 64 | But w|hat good|
|000058c0| 20 69 73 20 43 20 69 66 | 20 79 6f 75 20 63 61 6e | is C if| you can|
|000058d0| 6e 6f 74 20 64 6f 20 74 | 77 69 73 74 65 64 20 74 |not do t|wisted t|
|000058e0| 68 69 6e 67 73 20 77 69 | 74 68 20 69 74 21 00 00 |hings wi|th it!..|
|000058f0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 08 3e 02 66 00 |..d..ONL|N.d.>.f.|
|00005900| 3c 02 71 00 5a 00 2a 0a | 06 20 20 20 20 2a 2f 00 |<.q.Z.*.|. */.|
|00005910| a1 00 64 00 10 4f 4e 4c | 4e 00 64 08 45 02 7a 00 |..d..ONL|N.d.E.z.|
|00005920| 3c 02 85 01 bd 00 2a 14 | 4d 20 20 20 20 44 65 76 |<.....*.|M Dev|
|00005930| 49 6e 66 6f 4c 69 73 74 | 5b 64 65 76 43 6f 75 6e |InfoList|[devCoun|
|00005940| 74 5d 2e 67 64 53 6c 6f | 74 20 3d 20 28 2a 44 43 |t].gdSlo|t = (*DC|
|00005950| 45 48 61 6e 64 29 20 2d | 3e 20 64 43 74 6c 53 6c |EHand) -|> dCtlSl|
|00005960| 6f 74 3b 20 2f 2a 20 67 | 65 74 20 73 6c 6f 74 20 |ot; /* g|et slot |
|00005970| 6e 6f 2e 20 2a 2f 00 00 | a1 00 64 00 10 4f 4e 4c |no. */..|..d..ONL|
|00005980| 4e 00 64 08 93 02 8e 00 | 3c 02 99 01 d1 00 2a 14 |N.d.....|<.....*.|
|00005990| 51 4f 6e 63 65 20 79 6f | 75 20 68 61 76 65 20 74 |QOnce yo|u have t|
|000059a0| 68 65 20 73 6c 6f 74 20 | 6e 75 6d 62 65 72 20 79 |he slot |number y|
|000059b0| 6f 75 20 63 61 6e 20 63 | 61 6c 6c 20 74 68 65 20 |ou can c|all the |
|000059c0| 53 6c 6f 74 20 4d 61 6e | 61 67 65 72 20 74 6f 20 |Slot Man|ager to |
|000059d0| 67 65 74 20 74 68 65 20 | 62 6f 61 72 64 20 6e 61 |get the |board na|
|000059e0| 6d 65 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 08 |me....d.|.ONLN.d.|
|000059f0| e5 02 98 00 3c 02 a3 01 | e0 00 2a 0a 54 61 6e 64 |....<...|..*.Tand|
|00005a00| 20 6f 74 68 65 72 20 69 | 6e 66 6f 72 6d 61 74 69 | other i|nformati|
|00005a10| 6f 6e 20 79 6f 75 20 6d | 61 79 20 6e 65 65 64 20 |on you m|ay need |
|00005a20| 74 6f 20 69 64 65 6e 74 | 69 66 79 20 74 68 65 20 |to ident|ify the |
|00005a30| 64 65 76 69 63 65 2c 20 | 61 73 20 69 6e 20 74 68 |device, |as in th|
|00005a40| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 6f 64 65 |e follow|ing code|
|00005a50| 3a 00 20 02 de 00 58 02 | de 02 1d 00 03 00 14 00 |:. ...X.|........|
|00005a60| 0d 00 0a 00 2a 32 1d 47 | 72 61 70 68 69 63 73 20 |....*2.G|raphics |
|00005a70| 44 65 76 69 63 65 73 20 | 4d 61 6e 61 67 65 72 20 |Devices |Manager |
|00005a80| 51 26 41 73 00 00 28 02 | f1 02 04 01 31 00 29 05 |Q&As..(.|....1.).|
|00005a90| 05 20 6f 66 20 37 00 00 | ff 00 a1 00 c0 01 f4 25 |. of 7..|.......%|
|00005aa0| 25 44 53 49 44 49 43 54 | 3a 5f 63 76 0d 63 75 72 |%DSIDICT|:_cv.cur|
|00005ab0| 72 65 6e 74 64 69 63 74 | 20 2f 62 75 20 6b 6e 6f |rentdict| /bu kno|
|00005ac0| 77 6e 20 7b 62 75 7d 69 | 66 0d 75 73 65 72 64 69 |wn {bu}i|f.userdi|
|00005ad0| 63 74 20 2f 5f 63 76 20 | 6b 6e 6f 77 6e 20 6e 6f |ct /_cv |known no|
|00005ae0| 74 7b 75 73 65 72 64 69 | 63 74 20 2f 5f 63 76 20 |t{userdi|ct /_cv |
|00005af0| 33 30 20 64 69 63 74 20 | 70 75 74 7d 69 66 0d 5f |30 dict |put}if._|
|00005b00| 63 76 20 62 65 67 69 6e | 0d 2f 62 64 66 7b 62 69 |cv begin|./bdf{bi|
|00005b10| 6e 64 20 64 65 66 7d 62 | 69 6e 64 20 64 65 66 0d |nd def}b|ind def.|
|00005b20| 63 75 72 72 65 6e 74 73 | 63 72 65 65 6e 2f 63 73 |currents|creen/cs|
|00005b30| 20 65 78 63 68 20 64 65 | 66 2f 63 61 20 65 78 63 | exch de|f/ca exc|
|00005b40| 68 20 64 65 66 2f 63 66 | 20 65 78 63 68 20 64 65 |h def/cf| exch de|
|00005b50| 66 0d 2f 73 65 74 63 6d | 79 6b 63 6f 6c 6f 72 20 |f./setcm|ykcolor |
|00005b60| 77 68 65 72 65 7b 2f 73 | 65 74 63 6d 79 6b 63 6f |where{/s|etcmykco|
|00005b70| 6c 6f 72 20 67 65 74 20 | 2f 63 76 63 6d 79 6b 20 |lor get |/cvcmyk |
|00005b80| 65 78 63 68 20 64 65 66 | 7d 7b 2f 63 76 63 6d 79 |exch def|}{/cvcmy|
|00005b90| 6b 7b 31 20 73 75 62 20 | 34 20 31 20 72 6f 6c 6c |k{1 sub |4 1 roll|
|00005ba0| 20 33 7b 33 20 69 6e 64 | 65 78 20 61 64 64 20 6e | 3{3 ind|ex add n|
|00005bb0| 65 67 20 64 75 70 20 30 | 20 6c 74 7b 70 6f 70 20 |eg dup 0| lt{pop |
|00005bc0| 30 7d 69 66 20 33 20 31 | 20 72 6f 6c 6c 7d 72 65 |0}if 3 1| roll}re|
|00005bd0| 70 65 61 74 20 73 65 74 | 72 67 62 63 6f 6c 6f 72 |peat set|rgbcolor|
|00005be0| 20 70 6f 70 7d 62 64 66 | 20 7d 69 66 65 6c 73 65 | pop}bdf| }ifelse|
|00005bf0| 0d 2f 73 73 7b 2f 2f 63 | 66 20 2f 2f 63 61 20 2f |./ss{//c|f //ca /|
|00005c00| 2f 63 73 20 73 65 74 73 | 63 72 65 65 6e 7d 62 64 |/cs sets|creen}bd|
|00005c10| 66 0d 2f 73 74 67 7b 73 | 73 20 73 65 74 67 72 61 |f./stg{s|s setgra|
|00005c20| 79 7d 62 64 66 0d 2f 73 | 74 72 67 62 7b 73 73 20 |y}bdf./s|trgb{ss |
|00005c30| 73 65 74 72 67 62 63 6f | 6c 6f 72 7d 62 64 66 0d |setrgbco|lor}bdf.|
|00005c40| 2f 73 74 63 6d 79 6b 7b | 73 73 20 63 76 63 6d 79 |/stcmyk{|ss cvcmy|
|00005c50| 6b 7d 62 64 66 0d 2f 6d | 69 6e 31 7b 64 75 70 20 |k}bdf./m|in1{dup |
|00005c60| 30 20 65 71 7b 70 6f 70 | 20 31 7d 69 66 7d 62 64 |0 eq{pop| 1}if}bd|
|00005c70| 66 0d 65 6e 64 0d 63 75 | 72 72 65 6e 74 64 69 63 |f.end.cu|rrentdic|
|00005c80| 74 20 2f 62 6e 20 6b 6e | 6f 77 6e 20 7b 62 6e 7d |t /bn kn|own {bn}|
|00005c90| 69 66 0d 00 a0 00 bf 0f | 1e 00 00 00 00 02 d7 02 |if......|........|
|00005ca0| 23 00 11 02 ff 0c 00 ff | ff ff ff 00 00 00 00 00 |#.......|........|
|00005cb0| 00 00 00 02 23 00 00 02 | d7 00 00 00 00 00 00 00 |....#...|........|
|00005cc0| 0c 00 1e 00 1f 00 01 00 | 0a 00 00 00 00 03 49 02 |........|......I.|
|00005cd0| 52 00 2c 00 08 00 14 05 | 54 69 6d 65 73 00 03 00 |R.,.....|Times...|
|00005ce0| 14 00 0d 00 0a 00 2e 00 | 04 00 00 00 00 00 2b 36 |........|......+6|
|00005cf0| 2c 19 4d 61 63 69 6e 74 | 6f 73 68 20 54 65 63 68 |,.Macint|osh Tech|
|00005d00| 6e 69 63 61 6c 20 4e 6f | 74 65 73 00 20 00 2e 00 |nical No|tes. ...|
|00005d10| 34 00 2e 01 f9 00 2c 00 | 0a 00 16 07 43 6f 75 72 |4.....,.|....Cour|
|00005d20| 69 65 72 00 03 00 16 00 | 0d 00 09 00 a1 00 64 00 |ier.....|......d.|
|00005d30| 10 4f 4e 4c 4e 00 64 00 | 00 00 1c 00 18 00 27 01 |.ONLN.d.|......'.|
|00005d40| 85 00 2a 17 49 20 20 2f | 2a 20 74 6f 20 66 69 6e |..*.I /|* to fin|
|00005d50| 64 20 74 68 65 20 62 6f | 61 72 64 20 6e 61 6d 65 |d the bo|ard name|
|00005d60| 20 77 65 20 68 61 76 65 | 20 74 6f 20 67 6f 20 69 | we have| to go i|
|00005d70| 6e 74 6f 20 74 68 65 20 | 73 6c 6f 74 20 6d 61 6e |nto the |slot man|
|00005d80| 61 67 65 72 20 67 75 74 | 73 2c 20 61 6e 64 00 00 |ager gut|s, and..|
|00005d90| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 4a 00 26 00 |..d..ONL|N.d.J.&.|
|00005da0| 18 00 31 00 ea 00 2a 0a | 2a 20 20 67 65 74 20 74 |..1...*.|* get t|
|00005db0| 68 65 20 6e 61 6d 65 20 | 66 72 6f 6d 20 74 68 65 |he name |from the|
|00005dc0| 20 62 6f 61 72 64 20 73 | 52 65 73 6f 75 72 63 65 | board s|Resource|
|00005dd0| 20 2a 2f 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 | */...d.|.ONLN.d.|
|00005de0| 75 00 30 00 18 00 3b 00 | fe 00 2a 0a 2e 20 20 20 |u.0...;.|..*.. |
|00005df0| 20 73 70 42 2e 73 70 53 | 6c 6f 74 20 3d 20 44 65 | spB.spS|lot = De|
|00005e00| 76 49 6e 66 6f 4c 69 73 | 74 5b 64 65 76 43 6f 75 |vInfoLis|t[devCou|
|00005e10| 6e 74 5d 2e 67 64 53 6c | 6f 74 3b 00 a1 00 64 00 |nt].gdSl|ot;...d.|
|00005e20| 10 4f 4e 4c 4e 00 64 00 | a4 00 3a 00 18 00 45 00 |.ONLN.d.|..:...E.|
|00005e30| 6d 00 2a 0a 11 20 20 20 | 20 73 70 42 2e 73 70 49 |m.*.. | spB.spI|
|00005e40| 44 20 3d 20 30 3b 00 00 | a1 00 64 00 10 4f 4e 4c |D = 0;..|..d..ONL|
|00005e50| 4e 00 64 00 b6 00 44 00 | 18 00 4f 00 81 00 2a 0a |N.d...D.|..O...*.|
|00005e60| 15 20 20 20 20 73 70 42 | 2e 73 70 45 78 74 44 65 |. spB|.spExtDe|
|00005e70| 76 20 3d 20 30 3b 00 00 | a1 00 64 00 10 4f 4e 4c |v = 0;..|..d..ONL|
|00005e80| 4e 00 64 00 cc 00 4e 00 | 18 00 59 00 8b 00 2a 0a |N.d...N.|..Y...*.|
|00005e90| 17 20 20 20 20 73 70 42 | 2e 73 70 43 61 74 65 67 |. spB|.spCateg|
|00005ea0| 6f 72 79 20 3d 20 31 3b | 00 00 a1 00 64 00 10 4f |ory = 1;|....d..O|
|00005eb0| 4e 4c 4e 00 64 00 e4 00 | 58 00 18 00 63 00 7c 00 |NLN.d...|X...c.|.|
|00005ec0| 2a 0a 14 20 20 20 20 73 | 70 42 2e 73 70 43 54 79 |*.. s|pB.spCTy|
|00005ed0| 70 65 20 3d 20 30 3b 00 | a1 00 64 00 10 4f 4e 4c |pe = 0;.|..d..ONL|
|00005ee0| 4e 00 64 00 f9 00 62 00 | 18 00 6d 00 81 00 2a 0a |N.d...b.|..m...*.|
|00005ef0| 15 20 20 20 20 73 70 42 | 2e 73 70 44 72 76 72 53 |. spB|.spDrvrS|
|00005f00| 57 20 3d 20 30 3b 00 00 | a1 00 64 00 10 4f 4e 4c |W = 0;..|..d..ONL|
|00005f10| 4e 00 64 01 0f 00 6c 00 | 18 00 77 00 81 00 2a 0a |N.d...l.|..w...*.|
|00005f20| 15 20 20 20 20 73 70 42 | 2e 73 70 44 72 76 72 48 |. spB|.spDrvrH|
|00005f30| 57 20 3d 20 30 3b 00 00 | a1 00 64 00 10 4f 4e 4c |W = 0;..|..d..ONL|
|00005f40| 4e 00 64 01 25 00 80 00 | 18 00 8b 00 b8 00 2a 14 |N.d.%...|......*.|
|00005f50| 20 20 20 20 20 69 66 20 | 28 21 20 53 4e 65 78 74 | if |(! SNext|
|00005f60| 54 79 70 65 73 52 73 72 | 63 28 26 73 70 42 29 20 |TypesRsr|c(&spB) |
|00005f70| 29 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 01 46 00 |)...d..O|NLN.d.F.|
|00005f80| 8a 00 18 00 95 00 3b 00 | 2a 0a 07 20 20 20 20 20 |......;.|*.. |
|00005f90| 20 7b 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 | {....d.|.ONLN.d.|
|00005fa0| 4e 00 94 00 18 00 9f 01 | 85 00 2a 0a 49 20 20 20 |N.......|..*.I |
|00005fb0| 20 20 20 20 20 73 70 42 | 2e 73 70 49 44 20 3d 20 | spB|.spID = |
|00005fc0| 32 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |2; | |
|00005fd0| 20 20 2f 2a 20 47 65 74 | 20 42 6f 61 72 64 20 49 | /* Get| Board I|
|00005fe0| 44 20 43 61 72 64 73 20 | 61 6e 64 20 44 72 69 76 |D Cards |and Driv|
|00005ff0| 65 72 73 20 2a 2f 00 00 | a1 00 64 00 10 4f 4e 4c |ers */..|..d..ONL|
|00006000| 4e 00 64 01 98 00 9e 00 | 18 00 a9 00 c2 00 2a 0a |N.d.....|......*.|
|00006010| 22 20 20 20 20 20 20 20 | 20 69 66 20 28 20 21 20 |" | if ( ! |
|00006020| 53 47 65 74 43 53 74 72 | 69 6e 67 28 26 73 70 42 |SGetCStr|ing(&spB|
|00006030| 29 20 29 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |) )...d.|.ONLN.d.|
|00006040| bb 00 a8 00 18 00 b3 01 | 80 00 2a 0a 48 20 20 20 |........|..*.H |
|00006050| 20 20 20 20 20 20 20 7b | 20 20 20 20 20 20 20 20 | {| |
|00006060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006070| 20 20 2f 2a 20 6c 65 74 | 20 43 20 75 6e 72 61 76 | /* let| C unrav|
|00006080| 65 6c 20 69 74 73 20 6f | 77 6e 20 73 74 72 69 6e |el its o|wn strin|
|00006090| 67 73 20 2a 2f 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |gs */...|d..ONLN.|
|000060a0| 64 02 04 00 b2 00 18 00 | bd 01 67 00 2a 0a 43 20 |d.......|..g.*.C |
|000060b0| 20 20 20 20 20 20 20 20 | 20 20 20 66 6f 72 20 28 | | for (|
|000060c0| 63 6f 75 6e 74 20 3d 20 | 30 3b 20 44 65 76 49 6e |count = |0; DevIn|
|000060d0| 66 6f 4c 69 73 74 5b 64 | 65 76 43 6f 75 6e 74 5d |foList[d|evCount]|
|000060e0| 2e 62 64 4e 61 6d 65 5b | 63 6f 75 6e 74 2b 31 5d |.bdName[|count+1]|
|000060f0| 20 3d 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 | =....d.|.ONLN.d.|
|00006100| 48 00 bc 00 18 00 c7 01 | 9e 00 2a 0a 4e 20 20 20 |H.......|..*.N |
|00006110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006130| 20 20 2a 28 28 63 68 61 | 72 20 2a 29 28 73 70 42 | *((cha|r *)(spB|
|00006140| 2e 73 70 52 65 73 75 6c | 74 29 2b 63 6f 75 6e 74 |.spResul|t)+count|
|00006150| 29 3b 63 6f 75 6e 74 2b | 2b 29 3b 00 a1 00 64 00 |);count+|+);...d.|
|00006160| 10 4f 4e 4c 4e 00 64 02 | 97 00 c6 00 18 00 d1 01 |.ONLN.d.|........|
|00006170| 26 00 2a 0a 36 20 20 20 | 20 20 20 20 20 20 20 20 |&.*.6 | |
|00006180| 20 20 20 44 65 76 49 6e | 66 6f 4c 69 73 74 5b 64 | DevIn|foList[d|
|00006190| 65 76 43 6f 75 6e 74 5d | 2e 62 64 4e 61 6d 65 5b |evCount]|.bdName[|
|000061a0| 30 5d 20 3d 20 63 6f 75 | 6e 74 3b 00 a1 00 64 00 |0] = cou|nt;...d.|
|000061b0| 10 4f 4e 4c 4e 00 64 02 | ce 00 da 00 18 00 e5 00 |.ONLN.d.|........|
|000061c0| 4f 00 2a 14 0b 20 20 20 | 20 20 20 20 20 20 20 7d |O.*.. | }|
|000061d0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 da 00 |....d..O|NLN.d...|
|000061e0| e4 00 18 00 ef 00 3b 00 | 2a 0a 07 20 20 20 20 20 |......;.|*.. |
|000061f0| 20 7d 00 00 03 00 14 00 | 0d 00 0c 00 a1 00 64 00 | }......|......d.|
|00006200| 10 4f 4e 4c 4e 00 64 02 | e2 00 fa 00 18 01 06 00 |.ONLN.d.|........|
|00006210| 3d 00 2a 17 07 58 2d 52 | 65 66 73 3a 00 00 a1 00 |=.*..X-R|efs:....|
|00006220| 64 00 10 4f 4e 4c 4e 00 | 64 02 ea 01 06 00 18 01 |d..ONLN.|d.......|
|00006230| 12 00 e8 00 2a 0c 29 49 | 6e 73 69 64 65 20 4d 61 |....*.)I|nside Ma|
|00006240| 63 69 6e 74 6f 73 68 20 | 56 6f 6c 75 6d 65 20 49 |cintosh |Volume I|
|00006250| 49 2c 20 70 61 67 65 73 | 20 31 39 30 2d 31 39 32 |I, pages| 190-192|
|00006260| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 14 01 |....d..O|NLN.d...|
|00006270| 12 00 18 01 1e 00 cd 00 | 2a 0c 23 49 6e 73 69 64 |........|*.#Insid|
|00006280| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 56 6f 6c 75 |e Macint|osh Volu|
|00006290| 6d 65 20 56 2c 20 70 61 | 67 65 20 34 32 34 00 00 |me V, pa|ge 424..|
|000062a0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 03 38 01 1e 00 |..d..ONL|N.d.8...|
|000062b0| 18 01 2a 01 1d 00 2a 0c | 34 44 65 73 69 67 6e 69 |..*...*.|4Designi|
|000062c0| 6e 67 20 43 61 72 64 73 | 20 61 6e 64 20 44 72 69 |ng Cards| and Dri|
|000062d0| 76 65 72 73 20 66 6f 72 | 20 74 68 65 20 4d 61 63 |vers for| the Mac|
|000062e0| 69 6e 74 6f 73 68 20 46 | 61 6d 69 6c 79 00 04 01 |intosh F|amily...|
|000062f0| 00 00 0d 00 0e 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00006300| 64 03 6d 01 42 00 18 01 | 50 01 6a 00 2a 26 36 43 |d.m.B...|P.j.*&6C|
|00006310| 6f 64 65 20 73 6e 69 70 | 70 65 74 20 66 6f 72 20 |ode snip|pet for |
|00006320| 67 65 74 74 69 6e 67 20 | 4d 61 63 69 6e 74 6f 73 |getting |Macintos|
|00006330| 68 20 64 69 73 70 6c 61 | 79 20 69 6e 66 6f 72 6d |h displa|y inform|
|00006340| 61 74 69 6f 6e 00 04 00 | 00 00 0d 00 0c 00 06 00 |ation...|........|
|00006350| 02 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|00006360| a4 01 5c 00 18 01 68 01 | c8 00 2a 18 51 49 6e 20 |..\...h.|..*.QIn |
|00006370| 6d 79 20 4d 61 63 69 6e | 74 6f 73 68 20 73 79 73 |my Macin|tosh sys|
|00006380| 74 65 6d 2c 20 49 20 68 | 61 76 65 20 74 77 6f 20 |tem, I h|ave two |
|00006390| 73 63 72 65 65 6e 73 2e | 20 54 68 65 20 6d 61 69 |screens.| The mai|
|000063a0| 6e 20 73 63 72 65 65 6e | 20 69 6e 20 61 20 31 39 |n screen| in a 19|
|000063b0| 22 20 6d 6f 6e 6f 63 68 | 72 6f 6d 65 2e 20 00 00 |" monoch|rome. ..|
|000063c0| 06 00 03 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000063d0| 64 03 f5 01 5c 01 c8 01 | 68 01 da 00 28 01 84 01 |d...\...|h...(...|
|000063e0| e6 03 54 68 65 00 06 00 | 00 00 00 00 a1 00 64 00 |..The...|......d.|
|000063f0| 10 4f 4e 4c 4e 00 64 03 | f9 01 68 00 18 01 74 01 |.ONLN.d.|..h...t.|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.